Extension:Geshi

What can this extension do?
Syntax highlight text snippets, whole pages or whole files. The extension also provides a new 'hook' for other extensions to leverage as well as providing syntax highlighting for text blocks, whole pages or whole files. Line numbers can optionally be included or omitted.

Extensibility
This extension provides a new hook SyntaxHighlight that can be leveraged by other extensions. public function handler( &$text, $lang, $lines, &$result )

Usage

 * LINES parameter
 * 0 -> no line numbers
 * 1 -> include line numbers
 * LANG parameter: language
 * SOURCE parameter
 * source=page where page is a valid page
 * source=file where file is a valid file of the Mediawiki installation accessible through the root of the installation.

Example 1
 code OR page title OR filename

Example 2
 php code OR page title OR filename This usage is especially useful to integrate with other extensions (such as Form Processor).

Installation

 * Download the whole directory provided through the SVN link.
 * Download Extension:ExtensionClass