How to Setup Syntax Highlighting in MediaWiki
Monday, June 16th, 2008Steps 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>
More information about GeSHI can be found at http://qbnz.com/highlighter/.
Edit: Oops. I had posted the last step with <pre> tags instead of <php>. I’ve fixed it now. Thanks override!

database-wielding 

