 Geshibot is a plugin for Joomla, that highlights code within content items (articles). Why Use Geshibot As you may know, Joomla and Mambo now already have a bot called Geshi, that is used for highlighting PHP Syntax, or other language syntax. However, I found the Geshi Mambot/Plugin to be lacking quite a few features. Geshibot, fills this in. Geshibot Features: * Uses the Geshi Syntax Higlighting Class from Geshi Project * Allow highlighting of syntax in multiple formats, php, xml, html4strict, javascript, etc. * Show or not show line number. * Show fancy line numbers * Load Joomla/Mambo Styles into highlighted syntax (uses JavaScript to add Joomla CSS Classes) * Show a Pure Source Code Links that opens source in new window, with no formatting * Show links to function/element references in highlighting * Loads CSS Classes so you can define your own CSS if needed. * Allow Custom Header and Footer. How to use GeshiBot In order for you to highlight Code you need to use the "" tags to encapsulate the code you need to highlight. The tag can take three parameters: language (or lang) - this can be php, html4strict, css, javascript, mysql, php-brief, text, xml header (or head) - Any Text that will display as the header footer (or foot) - Any text that will display as a footer You can also add more languages by adding the geshi language files into the: /joomla_site/mambots/geshibot/geshi/ directory.
Report this listing
|