Re: geshi code beautifier
i guess you are looking for that:
http://qbnz.com/highlighter/forum.php?t=4
i made me a small plugin (wikiplugin_gi.php) ...
usage: {GI(lan=php) some code {GI}
include_once('geshi.php');
function wikiplugin_gi_help() {
return tra("Geshi").":{GI()}".tra("text")."{GI}";
}
function wikiplugin_gi($data, $params) {
extract ($params);
$text = str_replace('<', '', $text);
$text = str_replace('', $text);
$text = str_replace('"', '"', $text);
$text = str_replace('&', '&', $text);
$path = 'geshi/';
$language = 'php';
$geshi = new GeSHi($data, $language, $path);
$geshi->set_overall_style('color: blue;', true);
return $geshi->parse_code();
}