Extension:GeSHiColor

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
GeSHiColor

Release status: unknown

Implementation Tag
Description This extension adds color to source code using GeSHi
MediaWiki MediaWiki 1.5.1 or newer
License No license specified
Download see below
Example arandeltac.com
Check usage and version matrix

The GeSHiColor extension adds color to source code using the PHP GeSHi (Generic Syntax Highlighter) library.

Tested with MediaWiki 1.5.1.

All the latest documentation, code, and a working examples are available at arandeltac.com.

Bug Warning and Fix [edit]

If you go to arandeltac.com and get this extension (well worth it) you need to edit the file GeSHiColor.php and change the line

function hookCode( $code, $args ) {

to

function codeHook( $code, $args ) {

if you want the <code></code> tags to work as advertised. Unfortunately these seems no way to contact the people who maintain the site.

You may also want to change this bit of code:

From:

if (!$type) { die('No language type defined for code block.'); }

Note - This caused some pages like the image description pages in MediaWiki to error out.

To:

if (!$type) {
        return $code;
    }

Other Extensions using GeSHiColor [edit]

There are other extensions using GeSHiColor: