Aw: GeSHi as a Wiki plugin
> Hi All !
> One thing we'd like to be able to do is to post snippets of C#, C++, or VB code in a nicely formatted manner. At the moment we're using the CODE plugin, but we'd like to include a bit of syntax highlighting. I noticed that some work had been done to implement GeSHi, but I can't find the plugin anywhere in CVS.
>
> Does anyone know how I can implement GeSHi as a Wiki plugin? Bear in mind that I've never programmed in php so please keep things simple!
Hi, I'm using this solution for my work:
1) Edit tikiwiki-1.9.2\lib\wiki-plugins\wikiplugin_code.php from line 44
Copy to clipboard
if (isset($colors)){ include_once('geshi.php'); $out.= "".geshi_highlight(decodeHTML(trim($code)), $colors, '' , true).""; }
2) copy geshi and its files to tikiwiki-1.9.2\ and tikiwiki-1.9.2\geshi
This solution works fine for HTML-Output. However with PDF I get bad results.
Regards
JMan