Extension:SyntaxHighlighterAndCodeColorizer

What can this extension do?
Highlight syntax and color code using JavaScript. This plugin integrates Alex Gorbatchev’s Syntax Highlighter Tool. There is currently full support for:


 * Bash/shell
 * C#
 * C++
 * CSS
 * Delphi
 * Diff
 * Groovy
 * JavaScript
 * Java
 * Perl
 * PHP
 * Plain Text
 * Python
 * Ruby
 * Scala
 * SQL
 * Visual Basic
 * XML

Example
See it in action:


 * Syntax Highlighting Example on MediaWiki
 * Image of Highlighting

Usage
Just surround your code like this:

Replace the  segment with the type of code you have. For a list of all available brush aliases, see here.

Admins can provide additional aliases (like &lt;plsql&gt; you code &lt;/plsql&gt;) by adding to the extension file code like this:

Download instructions
Download

Installation
To install this extension, add the following to LocalSettings.php:

You might get an error when you access your wiki in the browser. This can be because of the "-". To remedy to that problem, you can change to :

Where highlight.php is the same as syntax-highlighter-mediawiki.php, but changed accordingly to the new paths according to what is below.

Code
If you've changed your pathname because of the problem caused by the "-", you should change all the pathnames above to the new pathname (in our example, '/extensions/syntax/...'