Add syntax highlighting for more languages besides Javascript

This commit is contained in:
Frank Li 2017-07-24 14:53:00 -07:00
parent 69ba05e4f1
commit f3a152170d
3 changed files with 712 additions and 105 deletions

View file

@ -700,23 +700,6 @@ a:hover code {
.prism + .prism {
margin-top: 14px;
}
.token.keyword {
color: #1990B8;
}
.token.string, .token.regex {
color: #2F9C0A;
}
.token.boolean, .token.number {
color: #C92C2C;
}
.token.comment {
color: #7D8B99;
}
.prism table {
background: none;
border: none;
@ -740,6 +723,83 @@ a:hover code {
.highlighter-rouge .prism table tbody tr td.gutter pre {
max-width: 20px;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #a67f59;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
/** GitHub **/
.edit-page-link {