From the Joomla help files:
GeSHi:This displays formatted code in content items based on the GeSHi highlighting engine.
This is to be considered as an enhanced version of mosCode, allowing the rendering of many different programming languages with color-highlighted code by specifying the to-be-used language.
Usage: Use the "pre" tag and add the programming language you want to use for highlighting purposes as a parameter. Example:
< pre lang="xml" >your code here ...
< /pre >The mambot version of the GeSHi highlight code comes with the following highlighters for the most common renders installed, ready to be used:
- CSS => use lang="css"
- Html4 Strict => use lang="html4strict"
- JavaScript => use lang="javascript"
- PHP => use lang="php"
- PHP Brief => use lang="php-brief"
- SQL => use lang="sql"
- XML => use lang="xml"
Should you need additonal languages, you may download the full package from the developer site:
http://qbnz.com/highlighter/ which includes over 30 languages. You should then upload the required "newLanguage.php" from the package into your "\mambots\content\geshi\geshi" folder.
NOTE: As of 4.5.2.1, this bot seems to have an incompatibility with the Email cloaking mambot.