Michael Walker
10 years ago
7 changed files with 1980 additions and 3 deletions
@ -0,0 +1,12 @@ |
|||||
|
function styleCode() { |
||||
|
$('pre').each(function() { |
||||
|
if (!$(this).hasClass('prettyprint')) { |
||||
|
$(this).addClass('prettyprint'); |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
prettyPrint(); |
||||
|
} |
||||
|
|
||||
|
$(function() {styleCode();}); |
||||
|
|
File diff suppressed because it is too large
@ -0,0 +1,141 @@ |
|||||
|
/* Tomorrow Night Eighties Theme */ |
||||
|
/* Original theme - https://github.com/chriskempson/tomorrow-theme */ |
||||
|
.prettyprint { |
||||
|
background: #2d2d2d; |
||||
|
font-family: Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Consolas, monospace; |
||||
|
font-size: 12px; |
||||
|
line-height: 1.5; |
||||
|
border: 1px solid #ccc; |
||||
|
padding: 10px; |
||||
|
} |
||||
|
|
||||
|
.pln { |
||||
|
color: #cccccc; |
||||
|
} |
||||
|
|
||||
|
@media screen { |
||||
|
.str { |
||||
|
color: #99cc99; |
||||
|
} |
||||
|
|
||||
|
.kwd { |
||||
|
color: #cc99cc; |
||||
|
} |
||||
|
|
||||
|
.com { |
||||
|
color: #999999; |
||||
|
} |
||||
|
|
||||
|
.typ { |
||||
|
color: #6699cc; |
||||
|
} |
||||
|
|
||||
|
.lit { |
||||
|
color: #f99157; |
||||
|
} |
||||
|
|
||||
|
.pun { |
||||
|
color: #cccccc; |
||||
|
} |
||||
|
|
||||
|
.opn { |
||||
|
color: #cccccc; |
||||
|
} |
||||
|
|
||||
|
.clo { |
||||
|
color: #cccccc; |
||||
|
} |
||||
|
|
||||
|
.tag { |
||||
|
color: #f2777a; |
||||
|
} |
||||
|
|
||||
|
.atn { |
||||
|
color: #f99157; |
||||
|
} |
||||
|
|
||||
|
.atv { |
||||
|
color: #66cccc; |
||||
|
} |
||||
|
|
||||
|
.dec { |
||||
|
color: #f99157; |
||||
|
} |
||||
|
|
||||
|
.var { |
||||
|
color: #f2777a; |
||||
|
} |
||||
|
|
||||
|
.fun { |
||||
|
color: #6699cc; |
||||
|
} |
||||
|
} |
||||
|
@media print, projection { |
||||
|
.str { |
||||
|
color: #006600; |
||||
|
} |
||||
|
|
||||
|
.kwd { |
||||
|
color: #006; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
.com { |
||||
|
color: #600; |
||||
|
font-style: italic; |
||||
|
} |
||||
|
|
||||
|
.typ { |
||||
|
color: #404; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
.lit { |
||||
|
color: #004444; |
||||
|
} |
||||
|
|
||||
|
.pun, .opn, .clo { |
||||
|
color: #444400; |
||||
|
} |
||||
|
|
||||
|
.tag { |
||||
|
color: #006; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
.atn { |
||||
|
color: #440044; |
||||
|
} |
||||
|
|
||||
|
.atv { |
||||
|
color: #006600; |
||||
|
} |
||||
|
} |
||||
|
/* Specify class=linenums on a pre to get line numbering */ |
||||
|
ol.linenums { |
||||
|
margin-top: 0; |
||||
|
margin-bottom: 0; |
||||
|
} |
||||
|
|
||||
|
/* IE indents via margin-left */ |
||||
|
li.L0, |
||||
|
li.L1, |
||||
|
li.L2, |
||||
|
li.L3, |
||||
|
li.L4, |
||||
|
li.L5, |
||||
|
li.L6, |
||||
|
li.L7, |
||||
|
li.L8, |
||||
|
li.L9 { |
||||
|
/* */ |
||||
|
} |
||||
|
|
||||
|
/* Alternate shading for lines */ |
||||
|
li.L1, |
||||
|
li.L3, |
||||
|
li.L5, |
||||
|
li.L7, |
||||
|
li.L9 { |
||||
|
/* */ |
||||
|
} |
@ -0,0 +1,141 @@ |
|||||
|
/* Tomorrow Theme */ |
||||
|
/* Original theme - https://github.com/chriskempson/tomorrow-theme */ |
||||
|
.prettyprint { |
||||
|
background: white; |
||||
|
font-family: Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Consolas, monospace; |
||||
|
font-size: 12px; |
||||
|
line-height: 1.5; |
||||
|
border: 1px solid #ccc; |
||||
|
padding: 10px; |
||||
|
} |
||||
|
|
||||
|
.pln { |
||||
|
color: #4d4d4c; |
||||
|
} |
||||
|
|
||||
|
@media screen { |
||||
|
.str { |
||||
|
color: #718c00; |
||||
|
} |
||||
|
|
||||
|
.kwd { |
||||
|
color: #8959a8; |
||||
|
} |
||||
|
|
||||
|
.com { |
||||
|
color: #8e908c; |
||||
|
} |
||||
|
|
||||
|
.typ { |
||||
|
color: #4271ae; |
||||
|
} |
||||
|
|
||||
|
.lit { |
||||
|
color: #f5871f; |
||||
|
} |
||||
|
|
||||
|
.pun { |
||||
|
color: #4d4d4c; |
||||
|
} |
||||
|
|
||||
|
.opn { |
||||
|
color: #4d4d4c; |
||||
|
} |
||||
|
|
||||
|
.clo { |
||||
|
color: #4d4d4c; |
||||
|
} |
||||
|
|
||||
|
.tag { |
||||
|
color: #c82829; |
||||
|
} |
||||
|
|
||||
|
.atn { |
||||
|
color: #f5871f; |
||||
|
} |
||||
|
|
||||
|
.atv { |
||||
|
color: #3e999f; |
||||
|
} |
||||
|
|
||||
|
.dec { |
||||
|
color: #f5871f; |
||||
|
} |
||||
|
|
||||
|
.var { |
||||
|
color: #c82829; |
||||
|
} |
||||
|
|
||||
|
.fun { |
||||
|
color: #4271ae; |
||||
|
} |
||||
|
} |
||||
|
@media print, projection { |
||||
|
.str { |
||||
|
color: #006600; |
||||
|
} |
||||
|
|
||||
|
.kwd { |
||||
|
color: #006; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
.com { |
||||
|
color: #600; |
||||
|
font-style: italic; |
||||
|
} |
||||
|
|
||||
|
.typ { |
||||
|
color: #404; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
.lit { |
||||
|
color: #004444; |
||||
|
} |
||||
|
|
||||
|
.pun, .opn, .clo { |
||||
|
color: #444400; |
||||
|
} |
||||
|
|
||||
|
.tag { |
||||
|
color: #006; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
.atn { |
||||
|
color: #440044; |
||||
|
} |
||||
|
|
||||
|
.atv { |
||||
|
color: #006600; |
||||
|
} |
||||
|
} |
||||
|
/* Specify class=linenums on a pre to get line numbering */ |
||||
|
ol.linenums { |
||||
|
margin-top: 0; |
||||
|
margin-bottom: 0; |
||||
|
} |
||||
|
|
||||
|
/* IE indents via margin-left */ |
||||
|
li.L0, |
||||
|
li.L1, |
||||
|
li.L2, |
||||
|
li.L3, |
||||
|
li.L4, |
||||
|
li.L5, |
||||
|
li.L6, |
||||
|
li.L7, |
||||
|
li.L8, |
||||
|
li.L9 { |
||||
|
/* */ |
||||
|
} |
||||
|
|
||||
|
/* Alternate shading for lines */ |
||||
|
li.L1, |
||||
|
li.L3, |
||||
|
li.L5, |
||||
|
li.L7, |
||||
|
li.L9 { |
||||
|
/* */ |
||||
|
} |
Loading…
Reference in new issue