Extension:GeSHiColor
From MediaWiki.org
|
GeSHiColor Release status: unknown |
|
|---|---|
| Implementation | Tag |
| Description | This extension adds color to source code using GeSHi |
| MediaWiki | MediaWiki 1.5.1 or newer |
| Download | see below |
| Example | arandeltac.com |
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.
[edit] Bug Warning and Fix
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;
}
[edit] Other Extensions using GeSHiColor
There are other extensions using GeSHiColor:

