Created
December 28, 2011 00:10
-
-
Save 0i0/1525535 to your computer and use it in GitHub Desktop.
tommorw night syntax highlighting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" language="javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script> | |
<script type="text/javascript" language="javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/lang-css.js"></script> | |
<script type="text/javascript"> | |
function addLoadEvent(func) { | |
var oldonload = window.onload; | |
if (typeof window.onload != 'function') { | |
window.onload = func; | |
} else { | |
window.onload = function() { | |
if (oldonload) { | |
oldonload(); | |
} | |
func(); | |
} | |
} | |
} | |
addLoadEvent(prettyPrint); | |
</script> | |
<style type="text/css"> | |
/* Pretty printing styles. Used with prettify.js. */ | |
.str { color: #A7B367; } | |
.kwd { color: #C86563; } | |
.com { color: #800; } | |
.typ { color: #606; } | |
.lit { color: #D09562; } | |
.pun { color: #660; } | |
.pln { color: #AFB0AE; } | |
.tag { color: #008; } | |
.atn { color: #606; } | |
.atv { color: #080; } | |
.dec { color: #606; } | |
pre.prettyprint { | |
padding: 20px; | |
border: 1px solid #111; | |
background: #1D1F21; | |
} | |
@media print { | |
.str { color: #A7B367; } | |
.kwd { color: #C86563; font-weight: bold; } | |
.com { color: #600; font-style: italic; } | |
.typ { color: #404; font-weight: bold; } | |
.lit { color: #D09562; } | |
.pun { color: #440; } | |
.pln { color: #AFB0AE; } | |
.tag { color: #006; font-weight: bold; } | |
.atn { color: #404; } | |
.atv { color: #060; } | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment