How to Setup Syntax Highlighting in MediaWiki

Steps for setting up GeSHi (Generic Syntax Highlighter) on MediaWiki: Download GeSHi (Generic Syntax Highlighter). Upload geshi.php and the geshi folder to your MediaWiki extensions folder. Create GeSHiHighlight.php using this source code. Copy the following line to your LocalSettings.php file. include(“extensions/GeSHiHighlight.php”); Add code to a MediaWiki page using <pre> tags. <php><?php echo “Hello World!”; ?></php> […]