... Elxis version 2009.3 codename Aphrodite is out, download it from Elxis Download Center (EDC) ...

GesHi Bot

From Elxis Official Documentation

Jump to: navigation, search
Geshi Bot in action, highlighted php code inside content
Geshi Bot in action, highlighted php code inside content

Geshi is a Bot that if enabled in Bots Manager allow to highlight code inside content items. It uses the well known highlighting engine named GesHi(¹) to find <pre> tags and highlight the code inside them. According to what parameter defined in "lang" option geshi uses different code-highlighting method that suites more to that coding language.


Usage

<pre lang="lang">... your code goes here! ...</pre>

You must use tinymce in "html" mode to write your code!


Lang parameters

Elxis GesHibot supported coding languages and their values for "lang" parameter:

  • php = PHP
  • css = Cascading Style Sheets (CSS)
  • html4strict = HTML
  • javascript = javaScript
  • xml = XML
  • actionscript = ActionScript
  • cmf = ColdFusion
  • mysql = MySQL
  • asp = Active Server Pages (ASP)
  • perl = Perl
  • sql = SQL
  • oracle8 = Oracle 8 SQL
  • scheme = Scheme
  • php-brief = PHP
  • robots = Robots.txt
  • ini = INI file

External Links

() Geshi Official Site.

Personal tools