31 require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR .
'geshi.php';
35 if ($handle = opendir(
$geshi->language_path)) {
36 while (($file = readdir($handle)) !==
false) {
37 $pos = strpos($file,
'.');
38 if ($pos > 0 && substr($file, $pos) ==
'.php') {
46 header(
'Content-Type: application/octet-stream');
47 header(
'Content-Disposition: attachment; filename="geshi.css"');
50 " * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann\n" .
51 " * (http://qbnz.com/highlighter/ and http://geshi.org/)\n".
55 $geshi->set_language($language);
57 $css =
$geshi->get_stylesheet(
false);
58 echo preg_replace(
'/^\/\*\*.*?\*\//s',
'', $css);