[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/help/ -> mambots.geshi.html (source)

   1  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   2  <html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">
   3  <head>
   4  <title>Mambot - GeSHi</title>
   5  <link href="css/help.css" rel="stylesheet" type="text/css" />
   6  </head>
   7  <body><strong class="title">Mambot: GeSHi</strong>
   8  <table width="100%"  border="1" cellspacing="0" cellpadding="3">
   9       <tr>
  10            <td width="16%" align="right" valign="top" bgcolor="#EFEFEF" class="datalabel">Purpose:</td>
  11            <td width="84%" valign="top" class="data"><p>This displays formatted
  12                      code in Content Items based on the GeSHi highlighting engine.
  13                      This is an enhanced version of Code Support,
  14                      allowing the rendering of many different programming languages
  15                      with color-highlighted code by specifying the to-be-used
  16                      language.</p>
  17                 <p>NOTE:&nbsp;In some versions of Mambo , this bot has an incompatibility
  18                      with the Email Cloaking Mambot.</p></td>
  19       </tr>
  20       <tr>
  21            <td align="right" valign="top" bgcolor="#EFEFEF" class="datalabel">Usage:</td>
  22            <td valign="top" class="data">Use the &quot;pre&quot; tag and add the
  23                 programming language you want to use for highlighting purposes
  24                 as a parameter. <br />
  25                 Example: 
  26            <code>&lt; pre lang=&quot;xml&quot; &gt;your code here ... &lt; /pre &gt;</code></td>
  27       </tr>
  28       <tr>
  29            <td align="right" valign="top" bgcolor="#EFEFEF" class="datalabel">Default State: </td>
  30            <td valign="top" class="data">Unpublished</td>
  31       </tr>
  32       <tr>
  33            <td align="right" valign="top" bgcolor="#EFEFEF" class="datalabel">Parameters:</td>
  34            <td valign="top" class="data">The mambot version of the GeSHi highlight
  35                 code comes with the following highlighters for the most common
  36                 renders installed, ready&nbsp;to be&nbsp;used:
  37  
  38  <ul >
  39       <li>CSS =&gt; use lang=&quot;css&quot;</li>
  40       <li>Html4 Strict =&gt; use lang=&quot;html4strict&quot;</li>
  41       <li>JavaScript =&gt; use lang=&quot;javascript&quot;</li>
  42       <li>PHP =&gt; use lang=&quot;php&quot;</li>
  43       <li>PHP Brief =&gt; use lang=&quot;php-brief&quot;</li>
  44       <li>SQL =&gt; use lang=&quot;sql&quot;</li>
  45       <li>XML =&gt; use lang=&quot;xml&quot;</li>
  46  </ul>
  47  Should you need additonal languages, you may download the full package from
  48       the developer site: <a href=
  49  "http://qbnz.com/highlighter/">http://qbnz.com/highlighter/</a>&nbsp;which includes
  50       over 30 languages. You should then upload the required &quot;newLanguage.php&quot; from
  51       the package into your &quot;<em>\mambots\content\geshi\geshi</em>&quot; folder.</td>
  52       </tr> <tr>
  53            <td align="right" valign="top" bgcolor="#EFEFEF" class="datalabel">Toolbar Icons: </td>
  54            <td valign="top" class="data"><ul>
  55                 <li><strong>Save:</strong> Save your changes. </li>
  56                 <li><strong>Apply:</strong> Apply your changes to the site without
  57                      saving. </li>
  58                 <li><strong>Close:</strong> Cancel the present operation without
  59                      saving.</li>
  60            </ul></td>
  61       </tr>
  62  </table>
  63  
  64  </body></html>