Skip to content

Instantly share code, notes, and snippets.

@aras-p
Created April 17, 2011 13:42
Show Gist options
  • Save aras-p/924040 to your computer and use it in GitHub Desktop.
Save aras-p/924040 to your computer and use it in GitHub Desktop.
Messing with syntax highlighting for altdevblogaday
.wp_syntax, .wp_syntax .line_numbers, .wp_syntax .code, .wp_syntax pre {
background-color: #f8f8f8;
color: #111;
font-family: Consolas, Lucida Console, Monaco, monospace;
}
.wp_syntax {
border-radius: 5px;
margin: 0 0 1.5em 0;
border: 1px solid #ddd;
overflow: auto;
}
/* IE FIX */
.wp_syntax {
overflow-x: auto;
overflow-y: hidden;
padding-bottom: expression(this.scrollWidth > this.offsetWidth ? 15 : 0);
width: 99%;
}
.wp_syntax table {
border-collapse: collapse;
}
.wp_syntax div, .wp_syntax td {
vertical-align: top;
padding: 1px 2px;
}
.wp_syntax .line_numbers {
text-align: right;
overflow: visible;
border-right: 1px solid #ddd;
}
.wp_syntax .line_numbers pre {
color: #888;
}
.wp_syntax .code {
}
/* potential overrides for other styles */
.wp_syntax pre {
border: 0px;
margin: 0;
width: auto;
float: none;
clear: none;
overflow: visible;
font-size: 12px;
}
/* global styles, can be overridden per-language using CSS inheritance */
/* default styles-- non-keywords, etc. */
.de1 { }
.de2 { }
/* language keywords... some languages have more than others. Blueish */
.kw1 {color: #008; }
.kw2 {color: #008; }
.kw3 {color: #008; }
.kw4 {color: #008; }
/* various kinds of comments. greenish. */
.co0 {color: #4a4; font-style: italic;}
.co1 {color: #4a4; font-style: italic;}
.co2 {color: #4a4; font-style: italic;}
.co3 {color: #4a4; font-style: italic;}
.co4 {color: #4a4; font-style: italic;}
.coMULTI {color: #4a4; font-style: italic;} /* multi-line comments */
/* strings - redish */
.st0 {color: #400;}
.st_h {color: #400;} /* "hard" strings (usu. singlequotes) */
/* escape characters ESCAPE_CHAR */
.es0 {color: #400;}
.es_h {color: #400;} /* in "hard" strings */
/* brackets, braces, and the like */
.br0 {color: #666;}
/* symbolses */
.sy0 {color: #666; }
.sy1 {color: #666; }
/* numbers */
.nu0 {}
.nu8 {} /* octal - GESHI_NUMBER_OCT_PREFIX */
.nu12 {} /* hex - GESHI_NUMBER_HEX_PREFIX */
.nu19 {} /* scientific- GESHI_NUMBER_FLT_SCI_ZERO */
/* methods */
.me1 {}
.me2 {}
/* misc other regexp-based constructs, differ widely by language */
.re0 {} /* variables, in most langs */
.re1 {}
.re2 {}
.re3 {}
.re4 {}
.re5 {}
.re6 {}
.re7 {}
.re8 {}
.re9 {}
/* links, for if you've got documentation linkage turned on */
a {
text-decoration: none
}
/* special diff colors to sort of make sense... see wp-syntax/geshi/geshi/diff.php */
.diff .kw1 {font-style: italic;}
.diff .re0 {}
.diff .re1 {}
.diff .re2 {}
.diff .re3 {}
.diff .re4 {}
.diff .re5 {}
.diff .re6 {}
.diff .re7 {}
.diff .re8 {}
.diff .re9 {}
/* examples of per-language overrides, from the symfony project */
/* .php .imp {font-weight: bold; color: red} */
/* .php .kw1 {color: #FF8400} */
/* .php .kw2 {color: #FFCC66} */
/* .php .kw3 {color: #07DFFC} */
/* .php .co1 {color: #BD48B3; font-style: italic} */
/* .php .co2 {color: #BD48B3; font-style: italic} */
/* .php .coMULTI {color: #BD48B3; font-style: italic} */
/* .php .es0 {color: #ddd} */
/* .php .br0 {color: #fff} */
/* .php .st0 {color: #99FF00} */
/* .php .nu0 {color: #66CC66} */
/* .php .me1 {color: #FFCC66} */
/* .php .me2 {color: #FFCC66} */
/* .php .re0 {color: #fff} */
/* .php a {text-decoration: none} */
/* .xml .imp {font-weight: bold; color: red} */
/* .xml .coMULTI {color: #BD48B3; font-style: italic} */
/* .xml .es0 {color: #0000aa; font-weight: bold} */
/* .xml .br0 {color: #66cc66} */
/* .xml .st0 {color: #99FF00} */
/* .xml .nu0 {color: #cc66cc} */
/* .xml .sc0 {color: #00bbdd} */
/* .xml .sc1 {color: #ddbb00} */
/* .xml .sc2 {color: #339933} */
/* .xml .sc3 {color: #fff} */
/* .xml .re0 {color: #FFFF99} */
/* .xml .re1 {color: #FFCC66} */
/* .xml .re2 {color: #FFCC66} */
/* .css .imp {font-weight: bold; color: red} */
/* .css .kw1 {color: #fff} */
/* .css .kw2 {color: #993333} */
/* .css .co1 {color: #a1a100} */
/* .css .coMULTI {color: #808080; font-style: italic} */
/* .css .es0 {color: #000099; font-weight: bold} */
/* .css .br0 {color: #66cc66} */
/* .css .st0 {color: #ff0000} */
/* .css .nu0 {color: #cc66cc} */
/* .css .re0 {color: #cc00cc} */
/* .css .re1 {color: #6666ff} */
/* .css .re2 {color: #3333ff} */
/* .javascript .imp {font-weight: bold; color: red} */
/* .javascript .kw1 {color: #FF8400} */
/* .javascript .kw2 {color: #FFCC66} */
/* .javascript .kw3 {color: #07DFFC} */
/* .javascript .co1 {color: #BD48B3; font-style: italic} */
/* .javascript .coMULTI {color: #BD48B3; font-style: italic} */
/* .javascript .es0 {color: #000099} */
/* .javascript .br0 {color: #fff} */
/* .javascript .st0 {color: #99FF00} */
/* .javascript .nu0 {color: #66CC66} */
/* .javascript .me1 {color: #FFCC66} */
/* .javascript .re0 {color: #fff} */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment