Village Pump:Home/Syntax Highlighting ( archived 2009-06-18 ): Difference between revisions

From Rosetta Code
Content added Content deleted
(Old highlighting?)
m (Yes, there will be changes)
Line 9: Line 9:
This will significantly clean up the Mediawiki extension namespace, and make formatting tricks with CSS easier. I'd rather create an attribute to <pre>, but that appears as though it could be more complicated. --[[User:Short Circuit|Short Circuit]] 05:52, 2 July 2008 (UTC)
This will significantly clean up the Mediawiki extension namespace, and make formatting tricks with CSS easier. I'd rather create an attribute to <pre>, but that appears as though it could be more complicated. --[[User:Short Circuit|Short Circuit]] 05:52, 2 July 2008 (UTC)
:Will we need to go and change all of the previous highlighting then? --[[User:Mwn3d|Mwn3d]] 06:11, 2 July 2008 (UTC)
:Will we need to go and change all of the previous highlighting then? --[[User:Mwn3d|Mwn3d]] 06:11, 2 July 2008 (UTC)
::Yes. Both approaches will be supported for a little while, I expect, but the current system will definitely be phased out. --[[User:Short Circuit|Short Circuit]] 23:42, 2 July 2008 (UTC)

Revision as of 23:42, 2 July 2008

I'm going to make some major changes to the Syntax Highlighting extension this weekend. Instead of denoting a block of C code as:

<C>(some code)</C>

Code will be denoted as:

<code lang="C">(some code)<code>

This will significantly clean up the Mediawiki extension namespace, and make formatting tricks with CSS easier. I'd rather create an attribute to <pre>, but that appears as though it could be more complicated. --Short Circuit 05:52, 2 July 2008 (UTC)

Will we need to go and change all of the previous highlighting then? --Mwn3d 06:11, 2 July 2008 (UTC)
Yes. Both approaches will be supported for a little while, I expect, but the current system will definitely be phased out. --Short Circuit 23:42, 2 July 2008 (UTC)