Extension:SyntaxHighlighter

Extension:SyntaxHighlighter displays formatted source code with the  tag using SyntaxHighlighter javascript library.

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

Installation
The source code is hosted on github and versioned using the git tool (not SVN, as most of the extensions). So, you'll need git to download or update the sources. Once git is installed, you can download the extension issuing the following command in the extensions/ directory:

git clone git://github.com/seongjaelee/SyntaxHighlighter.git

That would create directory SyntaxHighlighter/, which contains the needed files, right under extensions/.

If you don't want to be bothered, you can just download the zip file from the following address:

https://github.com/seongjaelee/SyntaxHighlighter/zipball/master

Unzip the downloaded file in the extensions/ directory, and change the name of directory to SyntaxHighlighter/.

Finally, add the following to LocalSettings.php:

Many other syntax highlighting extensions also share  tag, so if you already use one, uncomment it from LocalSettings.php file.