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>< | 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 == | ||
< | <syntaxhighlight lang="php" line> | ||
<?php | <?php | ||
if( !defined( 'MEDIAWIKI' ) ) | if( !defined( 'MEDIAWIKI' ) ) | ||
| Line 50: | Line 50: | ||
?> | ?> | ||
</ | </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 | ||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:Wiki]] | [[Category:Wiki]] | ||