Talk:Rosetta Code/Fix code tags: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
I replaced GeshiCodeTag's behavior with respect to unsupported languages so that it just falls back uses an HTML <code> block. These will be distinguishable from GeSHi-targeted <code> blocks because they won't have a language parameter associated with them. Be mindful of that. --[[User:Short Circuit|Short Circuit]] 08:01, 30 January 2009 (UTC)
I replaced GeshiCodeTag's behavior with respect to unsupported languages so that it just falls back uses an HTML <code> block. These will be distinguishable from GeSHi-targeted <code> blocks because they won't have a language parameter associated with them. Be mindful of that. --[[User:Short Circuit|Short Circuit]] 08:01, 30 January 2009 (UTC)


I already solved this bug.
<nowiki>I already solved this bug.
It's a very poor solution, it finds "<code>" and "</code>" indexes, replace them to "c0de", so re.sub will ignore it.
It's a very poor solution, it finds "<code>" and "</code>" indexes, replace them to "c0de", so re.sub will ignore it.
At script end "c0de" it's replaced to "code" again.
At script end "c0de" it's replaced to "code" again.
Now the script can be 100% automatated, using Wikimedia API. (I think.) --[[User:Guga360|Guga360]] 16:26, 30 January 2009 (UTC)
Now the script can be 100% automatated, using Wikimedia API. (I think.)</nowiki> --[[User:Guga360|Guga360]] 16:26, 30 January 2009 (UTC)

Revision as of 16:27, 30 January 2009

I replaced GeshiCodeTag's behavior with respect to unsupported languages so that it just falls back uses an HTML <code> block. These will be distinguishable from GeSHi-targeted <code> blocks because they won't have a language parameter associated with them. Be mindful of that. --Short Circuit 08:01, 30 January 2009 (UTC)

I already solved this bug. It's a very poor solution, it finds "<code>" and "</code>" indexes, replace them to "c0de", so re.sub will ignore it. At script end "c0de" it's replaced to "code" again. Now the script can be 100% automatated, using Wikimedia API. (I think.) --Guga360 16:26, 30 January 2009 (UTC)