Web: Add own CSS file for GeSHi

This commit is contained in:
Tim Gerundt 2012-05-23 19:34:18 +02:00
parent dd0e333023
commit ea76c990d3
2 changed files with 42 additions and 0 deletions

View File

@ -5,6 +5,7 @@
<title>Online Demo Report - Cppcheck</title>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Orbitron&amp;text=Cppcheck" />
<link rel="stylesheet" type="text/css" href="/site/css/all.css" />
<link rel="stylesheet" type="text/css" href="/site/css/geshi.css" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
</head>
<body>
@ -69,6 +70,7 @@
include_once '../../site/geshi/geshi.php';
$geshi = new GeSHi($_POST['code'], 'cpp');
$geshi->enable_classes();
$geshi->set_header_type(GESHI_HEADER_PRE_TABLE);
$geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
$geshi->set_overall_class('geshicode');

40
htdocs/site/css/geshi.css Normal file
View File

@ -0,0 +1,40 @@
/**
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
*/
.cpp.geshicode .de1, .cpp.geshicode .de2 {font:normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.cpp.geshicode {font-family:monospace;}
.cpp.geshicode .imp {font-weight:bold; color:red;}
.cpp.geshicode li, .cpp.geshicode .li1 {font-weight:normal; vertical-align:top;}
.cpp.geshicode .ln {width:1px; text-align:right; margin:0; padding:0 2px; vertical-align:top; color:#999999;}
.cpp.geshicode .kw1 {color:#0000ff;}
.cpp.geshicode .kw2 {color:#0000ff;}
.cpp.geshicode .kw3 {color:#0000dd;}
.cpp.geshicode .kw4 {color:#0000ff;}
.cpp.geshicode .co1 {color:#666666;}
.cpp.geshicode .co2 {color:#339900;}
.cpp.geshicode .coMULTI {color:#ff0000; font-style:italic;}
.cpp.geshicode .es0 {color:#000099; font-weight:bold;}
.cpp.geshicode .es1 {color:#000099; font-weight:bold;}
.cpp.geshicode .es2 {color:#660099; font-weight:bold;}
.cpp.geshicode .es3 {color:#660099; font-weight:bold;}
.cpp.geshicode .es4 {color:#660099; font-weight:bold;}
.cpp.geshicode .es5 {color:#006699; font-weight:bold;}
.cpp.geshicode .br0 {color:#008000;}
.cpp.geshicode .sy0 {color:#008000;}
.cpp.geshicode .sy1 {color:#000080;}
.cpp.geshicode .sy2 {color:#000040;}
.cpp.geshicode .sy3 {color:#000040;}
.cpp.geshicode .sy4 {color:#008080;}
.cpp.geshicode .st0 {color:#ff0000;}
.cpp.geshicode .nu0 {color:#0000dd;}
.cpp.geshicode .nu6 {color:#208080;}
.cpp.geshicode .nu8 {color:#208080;}
.cpp.geshicode .nu12 {color:#208080;}
.cpp.geshicode .nu16 {color:#800080;}
.cpp.geshicode .nu17 {color:#800080;}
.cpp.geshicode .nu18 {color:#800080;}
.cpp.geshicode .nu19 {color:#800080;}
.cpp.geshicode .me1 {color:#007788;}
.cpp.geshicode .me2 {color:#007788;}
.cpp.geshicode span.xtra {display:block;}