Syntax Highlighting: Difference between revisions
info on highlighting source code |
→Syntax Highlighting in MediaWiki: link to subpage |
||
| Line 28: | Line 28: | ||
== Syntax Highlighting in MediaWiki == | == Syntax Highlighting in MediaWiki == | ||
Writing good code, especially in open source context, requires illustrating best practices and tutorials. Those tutorials are made ever more useful with syntax | (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). | 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). | ||
| Line 43: | Line 44: | ||
=== Usage === | === Usage === | ||
See the [[mw:Extension:SyntaxHighlight_GeSHi#Examples]] | See the [[mw:Extension:SyntaxHighlight_GeSHi#Examples]] | ||
<nowiki> | <nowiki> | ||