Extension:SourcesCatalogHighlighter

What can this extension do?
This extension enables you to add on your pages clickable catalog of sources with highlight. Heart of wextension is geshhi ( http://qbnz.com/highlighter/ ). Your can manage with rules of mapping file extension to file type (program language)

Installation
First At Copy Files into extension directory. Next, Modify extension config file in order to point to GeShi library location. // path to geshi define('PATH_TO_GESHI', '../geshi'); Next, Modify config file in order to map file extensions to file formats:

$MAP_EXT_TO_SOURCE = array ( 'as' => 'actionscript', 'as2' => 'actionscript', 'as3' => 'actionscript', 'c' => 'c', 'cpp' => 'cpp', 'css' => 'css', 'html' => 'html4strict', 'htm' => 'html4strict', 'shtml' => 'html4strict', 'php' => 'php', 'php3' => 'php', 'php4' => 'php', 'php5' => 'php', 'phtml' => 'php', );

Changes to LocalSettings.php
require_once("$IP/extensions/sourcehighlighter/setup.php");

Code
@ {sourceshighlight css="shc_basic.css" base="wiki/extensions" } 1. css = name of default css file 2. base = catalog name to render