Open main menu

Changes

no edit summary
{{Feature
|image=Syntax.jpg
|imgdesc=Code highlighting
|title=
}}
{{#set:feature description = syntax highlighting is available for dozens of languages through the [[mw:Extension:SyntaxHighlight_GeSHi]] and the underlying [[Python]] [http://pygments.org/ Pygments] library }}
{{#set:feature notes = }}
{{#set:feature tests = }}
{{#set:feature examples = [[Apache]] shows config file highlighting; [[Library]] shows JavaScript; etc. }}
 
 
== Syntax Highlighting in Quanta ==
Quanta has syntax defintion files which are called 'DTEP' files.
== 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>