Skip to content

Commit

Permalink
Merge pull request #133 from omarkhan/highlight
Browse files Browse the repository at this point in the history
Upgrade highlight.js to version 9.0.0
  • Loading branch information
jdan committed Dec 3, 2015
2 parents ba7736a + 768f319 commit 04c4ecd
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 94 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"commander": "~2.1.0",
"debug": "^2.1.1",
"highlight.js": "~7.3.0",
"highlight.js": "~9.0.0",
"js-yaml": "2.1.0",
"marked": "~0.2.9",
"mustache": "0.7.0",
Expand Down
149 changes: 56 additions & 93 deletions resources/github.css
Original file line number Diff line number Diff line change
@@ -1,136 +1,99 @@
/*
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/
code, pre {
border: 1px solid #ddd;
border-radius: 3px;
overflow: auto;
padding: 6px 10px;
}
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
code {
padding: 0 5px;
}
*/

pre>code {
margin: 0; padding: 0;
border: none;
background: transparent;
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
color: #333;
background: #f8f8f8;
}

pre .comment,
pre .template_comment,
pre .diff .header,
pre .javadoc {
.hljs-comment,
.hljs-quote {
color: #998;
font-style: italic
font-style: italic;
}

pre .keyword,
pre .css .rule .keyword,
pre .winutils,
pre .javascript .title,
pre .nginx .title,
pre .subst,
pre .request,
pre .status {
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: #333;
font-weight: bold
font-weight: bold;
}

pre .number,
pre .hexcolor,
pre .ruby .constant {
color: #099;
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: #008080;
}

pre .string,
pre .tag .value,
pre .phpdoc,
pre .tex .formula {
color: #d14
.hljs-string,
.hljs-doctag {
color: #d14;
}

pre .title,
pre .id {
.hljs-title,
.hljs-section,
.hljs-selector-id {
color: #900;
font-weight: bold
font-weight: bold;
}

pre .javascript .title,
pre .lisp .title,
pre .clojure .title,
pre .subst {
font-weight: normal
.hljs-subst {
font-weight: normal;
}

pre .class .title,
pre .haskell .type,
pre .vhdl .literal,
pre .tex .command {
.hljs-type,
.hljs-class .hljs-title {
color: #458;
font-weight: bold
font-weight: bold;
}

pre .tag,
pre .tag .title,
pre .rules .property,
pre .django .tag .keyword {
.hljs-tag,
.hljs-name,
.hljs-attribute {
color: #000080;
font-weight: normal
}

pre .attribute,
pre .variable,
pre .lisp .body {
color: #008080
font-weight: normal;
}

pre .regexp {
color: #009926
}

pre .class {
color: #458;
font-weight: bold
.hljs-regexp,
.hljs-link {
color: #009926;
}

pre .symbol,
pre .ruby .symbol .string,
pre .lisp .keyword,
pre .tex .special,
pre .prompt {
color: #990073
.hljs-symbol,
.hljs-bullet {
color: #990073;
}

pre .built_in,
pre .lisp .title,
pre .clojure .built_in {
color: #0086b3
.hljs-built_in,
.hljs-builtin-name {
color: #0086b3;
}

pre .preprocessor,
pre .pi,
pre .doctype,
pre .shebang,
pre .cdata {
.hljs-meta {
color: #999;
font-weight: bold
font-weight: bold;
}

pre .deletion {
background: #fdd
.hljs-deletion {
background: #fdd;
}

pre .addition {
background: #dfd
.hljs-addition {
background: #dfd;
}

pre .diff .change {
background: #0086b3
.hljs-emphasis {
font-style: italic;
}

pre .chunk {
color: #aaa
.hljs-strong {
font-weight: bold;
}

0 comments on commit 04c4ecd

Please sign in to comment.