Loading...
 
Features / Usability

Features / Usability


Re: geshi code beautifier

posts: 92 Germany

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();

}


There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting