Open main menu

Changes

71 bytes added ,  17:21, 9 December 2008
== Syntax Highlighting in MediaWiki ==
(Note that there is also a [[MediaWiki/Syntax highlighting]] article)Writing good code, especially in open source context, requires illustrating best practices and tutorials. Those tutorials are made ever more useful with syntax-highlighting.
MediaWiki is able to incorporate a nice 3rd-party project called [http://qbnz.com/highlighter/faq.php Generic Syntax Highlighter] or GeSHi for short. Fortunately GeSHi is now packaged with debian for easy installation on Debian or Debian-based systems. There is a [[mw:Extension:SyntaxHighlight_GeSHi]] extension which provides a tie-in between MediaWiki and GeSHi. (note that there are a few different GeSHi extensions for mediawiki, and we use the one in use on mediawiki.org http://www.mediawiki.org/wiki/Special:Version).
=== Usage ===
See the [[mw:Extension:SyntaxHighlight_GeSHi#Examples]]
 
<nowiki>
4,558

edits