Warning: Undefined variable $mode in /var/www/virtual/qbnz.com/htdocs/highlighter/examples/css/geshi-ss.php on line 6
GeSHi - Generic Syntax Highlighter :: Examples
 
Navigation
Home News Examples Demo Downloads FAQ Documentation Mailing Lists License
Support GeSHi!
If you're using GeSHi, why not help GeSHi out? You can link to GeSHi with this image:
Powered by GeSHi
Get the HTML

Project Status
The latest stable version of GeSHi is 1.0.8.11, released on the 19th of Aug, 2012.

Supported Languages:
*ABAP
*Actionscript
*ADA
*Apache Log
*AppleScript
*APT sources.list
*ASM (m68k)
*ASM (pic16)
*ASM (x86)
*ASM (z80)
*ASP
*AutoIT
*Backus-Naur form
*Bash
*Basic4GL
*BlitzBasic
*Brainfuck
*C
*C for Macs
*C#
*C++
*C++ (with QT)
*CAD DCL
*CadLisp
*CFDG
*CIL / MSIL
*COBOL
*ColdFusion
*CSS
*D
*Delphi
*Diff File Format
*DIV
*DOS
*DOT language
*Eiffel
*Fortran
*FourJ's Genero
*FreeBasic
*GetText
*glSlang
*GML
*gnuplot
*Groovy
*Haskell
*HQ9+
*HTML
*INI (Config Files)
*Inno
*INTERCAL
*IO
*Java
*Java 5
*Javascript
*KiXtart
*KLone C & C++
*LaTeX
*Lisp
*LOLcode
*LotusScript
*LScript
*Lua
*Make
*mIRC
*MXML
*MySQL
*NSIS
*Objective C
*OCaml
*OpenOffice BASIC
*Oracle 8 & 11 SQL
*Pascal
*Perl
*PHP
*Pixel Bender
*PL/SQL
*POV-Ray
*PowerShell
*Progress (OpenEdge ABL)
*Prolog
*ProvideX
*Python
*Q(uick)BASIC
*robots.txt
*Ruby
*Ruby on Rails
*SAS
*Scala
*Scheme
*Scilab
*SDLBasic
*Smalltalk
*Smarty
*SQL
*T-SQL
*TCL
*thinBasic
*TypoScript
*Uno IDL
*VB.NET
*Verilog
*VHDL
*VIM Script
*Visual BASIC
*Visual Fox Pro
*Visual Prolog
*Whitespace
*Winbatch
*Windows Registry Files
*X++
*XML
*Xorg.conf

GeSHi 1.0.8.11 is the current stable release, with eighteen new languages and bug fixes over the last release.

GeSHi 1.1.2alpha5 is the current latest version from the development branch, with full C support (see the GeSHi development website).
Subscribe
RSS 2
Mailing Lists
HomeNewsExamplesDemoDownloadsFAQDocumentationMailing ListsLicense 
5:46 am GMT

Examples

Examples » CSS
/**
 * GeSHi stylesheet
 * ----------------
 * Author: Oracle
 * Copyright: (c) 2004
 *
 * Main stylesheet for the GeSHi project
 */
 
/* General body styles */
body {
	margin: 10px;
	font-family: Verdana, Arial, sans-serif;
	font-size: 90%;
	background-color: #fcfcfc;
}
 
/* Default link styles */
a:link, a:visited {
	color: #0000ff;
}
a:hover {
	color: #6666ff;
}
 
/* Page header styles */
#header {
	width: 100%;
	border-spacing: 0;
}
#top-left {
	padding: 0;
}
#top-left img {
	border: 0;
}
#top-right {
	text-align: right;
	vertical-align: bottom;
	padding: 0;
}
 
/* lhs styles, including left navigation */
#lhs-spacer {
	border-top: 3px double #c6c6c6;
	width: 5px;
}
#lhs {
	width: 18%;
	vertical-align: top;
	font-size: 90%;
	border-left: 2px dashed #c6c6c6;
	border-right: 2px dashed #c6c6c6;
	border-top: 3px double #c6c6c6;
	background-color: #f3f3f3;
}
#lhs table {
	width: 100%;
}
#lhs table th {
	text-align: left;
	font-size: 100%;
	background-color: #ececec;
	border-top: 1px solid #d6d6d6;
	border-bottom: 1px solid #d6d6d6;
	color: #303030;
	padding-left: 2px;
}
#left-nav a {
	display: block;
	padding: 1px 0 1px 20px;
	color: #808080;
	border-bottom: 1px solid #f3f3f3;
	background: transparent url('../images/nav-default.gif') 3px 50% no-repeat;
}
#left-nav a:hover {
	background-color: #f0f0f6;
	color: #8080c0;
	border-bottom: 1px solid #e6e6f0;
	background: #f3f3f9 url('../images/nav-hover.gif') 3px 50% no-repeat;
}
#project-status {
	margin-top: 5px;
}
#project-status td {
	padding: 4px;
}
#lhs-links img {
	border: 0;
}
#hot-scripts {
	width: 180px;
	border: 1px solid #fa0933;
	padding: 2px;
	border-spacing: 0;
	background-color: #ffdddd;
	text-align: center;
	color: #664444;
}
 
#main {
	border-spacing: 0;
}
 
/* Navigation menu styles */
#top-nav {
	text-align: right;
	font: 75% bold Arial, sans-serif;
	text-transform: uppercase;
	border-top: 3px double #c6c6c6;
	padding: 0;
	height: 2em;
}
#top-nav a {
	border-bottom: 1px solid #c6c6c6;
	border-left: 1px solid #c6c6c6;
	padding: 5px 3px 2px 3px;
}
#top-nav a:link, #top-nav a:visited {
	color: #303030;
	text-decoration: none;
}
#top-nav a:hover {
	background-color: #f0f0f0;
}
#last-link {
	border-right: 1px solid #c6c6c6;
}
#info-box {
	float: right;
	font-size: 90%;
	font-weight: bold;
	color: #808080;
	padding-top: 8px;
}
 
/* Styles for page content */
#content {
	padding: 0 1em 1em;
	font-size: 85%;
	line-height: 150%;
	vertical-align: top;
	width: 81%;
}
 
/* Some simple default styles for common tags */
h3, h4, h5, h6 {
	font-family: Arial, sans-serif;
	margin-bottom: .3em;
	margin-top: .3em;
	color: #363636;
}
h3 {
	font-size: 175%;
}
h4 {
	font-size: 150%;
}
h5 {
	font-size: 125%;
}
h6 {
	font-size: 100%;
}
 
hr {
	height: 0;
	border: 0;
	border-top: 1px dotted #808080;
	margin: 0 2em;
	width: auto;
}
ul {
	list-style-image: url('../images/nav-default.gif');
}
fieldset {
	border: 1px dotted gray;
	background-color: #f0f0f0;
	margin-bottom: .5em;
}
legend {
	font-weight: bold;
	background-color: #f9f9f9;
	border: 1px solid #a0a0a0;
	border-width: 1px 2px 2px 1px;
}
textarea {
	font-family: 'Courier New', Courier, monospace;
	font-size: 90%;
}
.note {
	vertical-align: super;
	font-size: 80%;
	font-weight: normal;
	padding-left: 2px;
}
acronym {
	border-bottom: 1px dotted gray;
	font-style: normal;
}
em {
	font-style: italic;
}
 
/* Demo Input styles - colour etc */
.black {
	color: black;
}
.darkblue {
	color: #000066;
}
.blue {
	color: #0000bb;
}
.lightblue {
	color: #0000ff;
}
.darkred {
	color: #660000;
}
.red {
	color: #bb0000;
}
.lightred {
	color: #ff0000;
}
.darkgreen {
	color: #006600;
}
.green {
	color: #00bb00;
}
.lightgreen {
	color: #00ff00;
}
.darkyellow {
	color: #666600;
}
.yellow {
	color: #bbbb00;
}
.lightyellow {
	color: #ffff00;
}
.darkgrey {
	color: #666666;
}
.grey {
	color: gray;
}
.lightgrey {
	color: #bbbbbb;
}
.purple {
	color: purple;
}
.sublang {
	font-size: 90%;
}
.help {
	font-size: 80%;
}
.tehTable {
	width: 98%;
	margin: 0 auto;
}
.tehTable th {
	background-color: #d6d6d6;
	color: #363636;
}
.tehTable td {
	background-color: #f6f6f6;
}
.tehTable td.inputTD {
	text-align: center;
}
#notSoMuchWidth {
	margin: 0;
}
#options td {
	vertical-align: top;
	width: 50%;
	padding: 4px;
}
fieldset.submit {
	text-align: center;
}
 
 
/* PAGE STYLES */
 
/* index */
#index-lhs {
	vertical-align: top;
	padding-right: 15px;
}
#index-rhs {
	vertical-align: top;
	width: 300px;
}
#index-rhs textarea {
	width: 300px;
	height: 185px;
}
#index-rhs img {
	border: 1px solid #c6c6c6;
}
#demo-form {
	font-size: 95%;
	width: 300px;
	text-align: center;
}
#runtime-example {
	width: 300px;
}
 
/* news */
.news-item {
	border: 1px solid #c6c6c6;
	padding: 3px;
	color: #606060;
	background-color: #f4f4f4;
	margin-bottom: .5em;
}
.news-item h6 {
	border-bottom: 1px dotted #c6c6c6;
}
.news-item span.news-date {
	font-size: 85%;
	font-weight: bold;
}
.pagination {
	text-align: right;
	font-size: 90%;
	font-weight: bold;
	color: #808080;
}
 
/* liscence */
.liscence-header {
	text-align: center;
}
 
/* faq */
.faq-item-links {
	margin-left: 2em;
}
.faq-item-links, .faq-item-links a {
	font-size: 90%;
	color: #808080;
}
 
/* examples */
#example-sections {
	margin: 0 auto;
	background-color: #e0e0e0;
	width: 80%;
}
#example-sections th {
	background-color: #e6e6e6;
	color: #505050;
	text-align: center;
	font-weight: bold;
}
#example-sections td {
	background-color: #f0f0f0;
}
#example-sections td.center {
	text-align: center;
	font-weight: bold;
	color: #505050;
}
 
/* Footer styles */
#footer {
	font-size: 75%;
	text-align: center;
	padding: .5em;
	background-color: #f3f3f3;
	border-top: 3px double #c6c6c6;
	border-bottom: 1px solid #c6c6c6;
	color: #585858;
	width: 99%;
}
#footer img {
	border: 0;
}

This category contains 2 examples, and has been viewed 49914 times.