Home | History | Annotate | Download | only in contrib

Lines Matching refs:GeSHi

4  * Another GeSHi example script
7 * 'Alias /viewmysource /var/www/geshi/contrib/aliased.php'. Don't forget
22 // Assume you've put geshi in the include_path already
23 require_once("geshi.php");
43 // Prepare GeSHi instance
44 $geshi =& new GeSHi($contents, "PHP");
45 $geshi->set_header_type(GESHI_HEADER_PRE);
46 $geshi->enable_classes();
47 $geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 10);
48 $geshi->set_overall_style('color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;', true);
49 $geshi->set_line_style('font: normal normal 95% \'Courier New\', Courier, monospace; color: #003030;', 'font-weight: bold; color: #006060;', true);
50 $geshi->set_code_style('color: #000020;', 'color: #000020;');
51 $geshi->set_link_styles(GESHI_LINK, 'color: #000060;');
52 $geshi->set_link_styles(GESHI_HOVER, 'background-color: #f0f000;');
53 $geshi->set_header_content('Source code viewer');
54 $geshi->set_header_content_style('font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;');
55 $geshi->set_footer_content('Parsed in <TIME> seconds, using GeSHi <VERSION>');
56 $geshi->set_footer_content_style('font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-top: 1px solid #d0d0d0; padding: 2px;');
68 echo $geshi->get_stylesheet();
120 echo $geshi->parse_code();