SyntaxHighlight

From RaySoft

The SyntaxHighlight extension, formerly known as SyntaxHighlight_GeSHi, provides rich formatting of source code using the <syntaxhighlight> tag. It is powered by the Pygments library and supports hundreds of different programming languages and file formats.[1]

NOTE:
This extension is part of the standard MediaWiki installation.

Syntax

<syntaxhighlight [PARAMETER ...]>
...
</syntaxhighlight>

Parameters

highlight="NUMBER,[NUMBER, ...]"
Specifies which line is highlighted.
NOTE:
The parameter start="NUMBER" doesn't affect how it counts the lines.
lang="NAME"
Defines what programming language the source code is using. This affects how the extension highlights the source code. See Supported languages.
line
If you do not provide this parameter, then lines will not be numbered.
start="NUMBER"
Use together with the parameter line. Define the start number of the line.

References