|
Search:     Advanced search
Browse by category:
Glossary

Mambot: GeSHi

Add comment
Votes: 0
Comments: 0
Posted: 04 Nov, 2007
by: Pope L.
Updated: 04 Nov, 2007
by: Pope L.

GeSHi is an Open Source syntax highlighter for HTML, written in PHP. Basically, you input the source you want to highlight and the name of the language you want to highlight it in, and GeSHi returns the syntax-highlighted result. GeSHi supports many different languages such as PHP, JavaScript, HTML, and XML, each in a different colour to assist with readability. This Mambot is an enhanced version of Code Support to display formatted code within Content Items.

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 additional 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.

NOTE: In some versions of Mambo , this bot has an incompatibility with the Email Cloaking Mambot.
Others in this Category
document Mambot: Search Categories
document Mambot: Search Contacts
document Mambot: Search Content
document Mambot: Legacy Mambot Includer
document Mambot Manager
document Mambot: Code Support
document Mambot: Email Cloaking
document Mambot: MOS Image Editor Button
document Mambot: MOS Image
document Mambot: Load Module Positions
document Mambot: MOS Pagination
document Mambot: MOSPagebreak Editor Button
document Mambot: SEF
document Mambot: MOStlyCE
document Mambot: MOS Rating
document Mambot: New
document Mambot: Search Newsfeeds
document Mambot: No WYSIWYG Editor
document Mambot: Search Sections
document Mambot:TinyMCE WYSIWYG Editor
document Mambot: Search Web Links

RSS