MediaWiki/Syntax highlighting: Difference between revisions

added line numbers and supported language list
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
(2 intermediate revisions by one other user not shown)
Line 11: Line 11:
== Usage ==
== Usage ==


Just use the '''<nowiki><source></nowiki>''' tag with the ''lang'' parameter to define the programming language.  Other optional parameters are avaliable too.  See the example below.
Just use the '''<nowiki><syntaxhighlight></nowiki>''' tag with the ''lang'' parameter to define the programming language.  Other optional parameters are avaliable too.  See the example below.


== Parameters ==
== Parameters ==
Line 30: Line 30:


== Example ==
== Example ==
<source lang="php" line>
<syntaxhighlight lang="php" line>
<?php
<?php
if( !defined( 'MEDIAWIKI' ) )
if( !defined( 'MEDIAWIKI' ) )
Line 50: Line 50:


?>
?>
</source>
</syntaxhighlight>




Line 145: Line 145:
== Documentation ==
== Documentation ==
See http://qbnz.com/highlighter/geshi-doc.html for the extensive documentation.  GeSHi is used in a number of other software projects like  
See http://qbnz.com/highlighter/geshi-doc.html for the extensive documentation.  GeSHi is used in a number of other software projects like  
*  Dokuwiki - An advanced wiki engine
* gtk.php.net - Their manual uses GeSHi for syntax highlighting
* WordPress - A powerful blogging system*
* PHP-Fusion - A constantly evovling CMS
* SQL Manager - A Postgres DBAL
* Mambo - A popular open source CMS
* MediaWiki - A leader in Wikis*
* TikiWiki - A megapowerful Wiki/CMS
* TikiPro - Another powerful Wiki based on Tikiwiki
* RWeb - A site-building tool
If you want to use it in OASIS projects besides this wiki, then start with the documentation.


[[Category:Development]]
[[Category:Development]]
[[Category:Wiki]]
[[Category:Wiki]]