[FIX][NEW] code wiki plugin: Rewrite {CODE} plugin to use GeSHI - Generic Syntax Highlighter (if installed !) + some fixes :
[FIX][NEW] code wiki plugin: Rewrite {CODE} plugin to use GeSHI - Generic Syntax Highlighter (if installed !) + some fixes :

  Since GeSHI has been licensed under GPL only - which is incompatible with Tikiwiki's LGPL licence - you need to manually download (http://qbnz.com/highlighter) and copy GeSHI in your own tikiwiki's lib/geshi/ directory. You can also install the stable version of GeSHI with the Debian/Ubuntu package "php-geshi".

Comments by params:

  * "colors" param (i.e. language):

    - Now support color syntaxing for other languages than php (Use GeSHI when the colors param is specified (e.g. colors=php). Supported languages are extended to those supported by GeSHI (this includes php, html, sql, javascript, css, java, c, doxygen, delphi, ...) if it is installed (test if lib/geshi/class.geshi.php or lib/geshi/geshi.php or /usr/share/php-geshi/geshi.php exists),

    - In order to keep a way to use php's highlight_string function (which was used before for colors=php), colors=highlights can be used. This value was in the documentation but was not used before,

    - Do not support colors=phpcode which was in documentation but not handled in the code

  * "wrap" param:

    - Now also support text wrapping when using colors param,

    - Force wrapping in <pre> tag through a CSS hack (also supported in CSS 3),

    - If there is no wrapping, display a scrollbar (only if needed) to avoid truncating the text

  * "wiki" param:

    - Now also supports wiki parsing when using colors param

  * "ln" param:

    - Now also supports line numbering when using colors param (with GeSHI v.1.0.x only)

  * "caption" param: no change

Other comments:

  * Both stable and last development version (1.1.2alpha3) of GeSHI (http://qbnz.com/highlighter) are supported (the development version is better but does not handle "ln" param for the moment),

  * Remove backslashes on '$' signs, since they are apparently not evaluated somewhere but the plugin's output was not correct,

  * Use only PRE tags to reduce spaces at line beginning, line breaks and CSS problems


git-svn-id: 98221c33f75d780f3c875f55d1123395aec31ba7@10439 b456876b-0849-0410-b77d-98878d47e9d5

oregional/tiki,oregional/tiki,tikiorg/tiki,changi67/tiki,changi67/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki,tikiorg/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki,changi67/tiki