Skip to content

Instantly share code, notes, and snippets.

@hanssens
Created June 9, 2014 18:56
Show Gist options
  • Save hanssens/ac3e7d275759db58f3cc to your computer and use it in GitHub Desktop.
Save hanssens/ac3e7d275759db58f3cc to your computer and use it in GitHub Desktop.
Hanssens.com' custom Prettify Code Syntax
/* Based on Twitter Bootstrap style http://twitter.github.com/bootstrap/ */
.prettyprint .com { color: #93a1a1; }
.prettyprint .lit { color: #195f91; }
.prettyprint .pun, .prettyprint .opn, .prettyprint .clo { color: #93a1a1; }
.prettyprint .fun { color: #dc322f; }
.prettyprint .str, .prettyprint .atv { color: #D14; }
.prettyprint .kwd, .prettyprint .linenums .tag { color: #1e347b; }
.prettyprint .typ, .prettyprint .atn, .prettyprint .dec, .prettyprint .var { color: teal; }
.prettyprint .pln { color: #48484c; }
.comment-content pre.prettyprint code,
.post-content pre.prettyprint code,
pre.prettyprint code { padding: 0; margin: 0; border: none; display: block; white-space: pre;}
pre.prettyprint,
code.prettyprint,
.post-content pre.prettyprint,
.post-content code.prettyprint,
.comment-content pre.prettyprint,
.comment-content code.prettyprint { overflow: auto; word-wrap: normal; -moz-tab-size: 2; -o-tab-size: 2; tab-size: 2;}
.prettyprint {
padding: 8px;
background-color: transparent;
border: none;
}
pre.prettyprint {
border: none;
}
.prettyprint.linenums {
padding: 0;
}
/* Specify class=linenums on a pre to get line numbering */
.prettyprint ol.linenums {
padding: 8px 8px 8px 41px;
margin: 0;
-webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
-moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
}
.prettyprint ol.linenums li {
padding-left: 12px;
color: #bebec5;
line-height: 18px;
text-shadow: 0 1px 0 #fff;
}
code.prettyprint { display: block; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment