Extension:Geshi

See also: Extension:SyntaxHighlight GeSHi.

Purpose
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.

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).

Extensibility
This extension provides a new hook SyntaxHighlight that can be leveraged by other extensions.

History

 * Added 'source' tag for aligning with some similar extensions.
 * Added 'js' tag for highlighting 'Javascript'
 * Added 'css' tag for highlighting 'CSS'
 * Added parser function ''

1.0.0

 * Moved to PEAR distribution channel

Dependancy

 * StubManager extension