Jump to content

Syntax Highlighting

From Bonfire Star Wiki

Introduction

SyntaxHightlight_GeSHi[1] allows for a means of adding color to code text.

Enabling

Enable by adding this to LocalSettings.php.

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

Example markup

<syntaxhighlight lang=bash>
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
</syntaxhighlight>

Some available languages

Some of the languages that use often [2]:

  • Bash: bash
  • C#: cs
  • HTML: html
  • JavaScript: js
  • MySQL: mysql

References

See Also