Extension:SyntaxHighlighter

{{Extension|templatemode=
 * name         = SyntaxHighlighter
 * status       = unmaintained
 * alternative  = SyntaxHighlight
 * type1        = tag
 * type2        =
 * hook1        = ParserFirstCallInit
 * hook2        = ParserAfterTidy
 * username     = seongjaelee
 * author       = Seong Jae Lee
 * description  = Allows source code to be syntax highlighted using SyntaxHighlighter.
 * image        = SyntaxHighlighter.png
 * imagesize    = 350px
 * version      = 1.2
 * update       = 2012-09-01
 * mediawiki    = 1.18+
 * php          =
 * license      = MIT
 * download     = {{GithubDownload|seongjaelee|SyntaxHighlighter}}
 * readme       = README
 * needs-updatephp = No
 * changelog    =
 * parameters   =
 * tags         =  tag using the SyntaxHighlighter JavaScript library.

Usage
On a wiki page, you can now use "source" elements:

The above code produces the following result on the page:

The lang parameter specifies which language you are using. For more information, please refer to the README.md file. To see how the source codes are rendered, please refer to the sample page.

Supported lexers
Some of the supported languages and corresponding lang parameters are shown below. For the full list, please refer to the SyntaxHighlighter site.


 * C++ : cpp, c
 * C# : csharp, c-sharp
 * CSS : css
 * PHP : php
 * XML : xml, html, xhtml
 * Python : python, py
 * Java : java
 * JavaScript : jscript, js, javascript