Created
March 20, 2012 16:14
-
-
Save heshiyou/2137754 to your computer and use it in GitHub Desktop.
code-hightlight-prettyprint
This file contains hidden or 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
<link rel="stylesheet" type="text/css" href="http://x.libdd.com/farm1/23fcf3/8571658f/D7C90.css"></link> | |
<script type="text/javascript" src="http://x.libdd.com/farm1/23fcf3/d40262ff/932EF.js"></script> | |
</head> | |
<body onload="prettyPrint()"> | |
自定义css | |
/* Pretty printing styles. Used with prettify.js. */ | |
/* Vim sunburst theme by David Leibovic */ | |
pre .str, code .str { color: #65B042; } /* string - green */ | |
pre .kwd, code .kwd { color: #ffbc00; } /* keyword - dark pink */ | |
pre .com, code .com { color: #89bdff; } /* comment - gray */ | |
pre .typ, code .typ { color: #D3649F; } /* type - light blue */ | |
pre .lit, code .lit { color: #3387CC; } /* literal - blue */ | |
pre .pun, code .pun { color: #fff; } /* punctuation - white */ | |
pre .pln, code .pln { color: #fff; } /* plaintext - white */ | |
pre .tag, code .tag { color: #89bdff; } /* html/xml tag - light blue */ | |
pre .atn, code .atn { color: #bdb76b; } /* html/xml attribute name - khaki */ | |
pre .atv, code .atv { color: #65B042; } /* html/xml attribute value - green */ | |
pre .dec, code .dec { color: #3387CC; } /* decimal - blue */ | |
.post pre { | |
background-color: #1f1f1f; | |
border-radius:8px; | |
margin:1em auto; | |
padding:1em; | |
font-family: Menlo, Consolas, "Vera Mono", monospace; | |
font-size:12px; | |
overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */ | |
white-space: pre-wrap; /* css-3 */ | |
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
/*width: 100%;*/ | |
word-wrap: break-word; /* Internet Explorer 5.5+ */ | |
} | |
@media print { | |
pre .str, code .str { color: #060; } | |
pre .kwd, code .kwd { color: #006; font-weight: bold; } | |
pre .com, code .com { color: #600; font-style: italic; } | |
pre .typ, code .typ { color: #404; font-weight: bold; } | |
pre .lit, code .lit { color: #044; } | |
pre .pun, code .pun { color: #440; } | |
pre .pln, code .pln { color: #000; } | |
pre .tag, code .tag { color: #006; font-weight: bold; } | |
pre .atn, code .atn { color: #404; } | |
pre .atv, code .atv { color: #060; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment