Mambot: GeSHi
Purpose:

This displays formatted code in Content Items based on the GeSHi highlighting engine. This is an enhanced version of Code Support, allowing the rendering of many different programming languages with color-highlighted code by specifying the to-be-used language.

NOTE: In some versions of Mambo , this bot has an incompatibility with the Email Cloaking Mambot.

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 >
Default State: Unpublished
Parameters: 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.
Toolbar Icons:
  • Save: Save your changes.
  • Apply: Apply your changes to the site without saving.
  • Close: Cancel the present operation without saving.