-
Notifications
You must be signed in to change notification settings - Fork 127
Use highlight js #1489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use highlight js #1489
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,6 +167,12 @@ Some examples of likely triage priorities: | |
|
||
Please see the [dartdoc license][]. | ||
|
||
Generated docs include: | ||
|
||
* Highlight.js - | ||
[LICENSE](https://github.com/isagalaev/highlight.js/blob/master/LICENSE) | ||
* With `github.css` (c) Vasily Polovnyov <[email protected]> | ||
|
||
[GitHub Issue Tracker]: https://github.com/dart-lang/dartdoc/issues | ||
[contributor docs]: https://github.com/dart-lang/dartdoc/blob/master/CONTRIBUTING.md | ||
[dartdoc license]: https://github.com/dart-lang/dartdoc/blob/master/LICENSE |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/* | ||
|
||
github.com style (c) Vasily Polovnyov <[email protected]> | ||
|
||
*/ | ||
|
||
.hljs { | ||
display: block; | ||
overflow-x: auto; | ||
padding: 0.5em; | ||
color: #333; | ||
background: #f8f8f8; | ||
} | ||
|
||
.hljs-comment, | ||
.hljs-quote { | ||
color: #998; | ||
font-style: italic; | ||
} | ||
|
||
.hljs-keyword, | ||
.hljs-selector-tag, | ||
.hljs-subst { | ||
color: #333; | ||
font-weight: bold; | ||
} | ||
|
||
.hljs-number, | ||
.hljs-literal, | ||
.hljs-variable, | ||
.hljs-template-variable, | ||
.hljs-tag .hljs-attr { | ||
color: #008080; | ||
} | ||
|
||
.hljs-string, | ||
.hljs-doctag { | ||
color: #d14; | ||
} | ||
|
||
.hljs-title, | ||
.hljs-section, | ||
.hljs-selector-id { | ||
color: #900; | ||
font-weight: bold; | ||
} | ||
|
||
.hljs-subst { | ||
font-weight: normal; | ||
} | ||
|
||
.hljs-type, | ||
.hljs-class .hljs-title { | ||
color: #458; | ||
font-weight: bold; | ||
} | ||
|
||
.hljs-tag, | ||
.hljs-name, | ||
.hljs-attribute { | ||
color: #000080; | ||
font-weight: normal; | ||
} | ||
|
||
.hljs-regexp, | ||
.hljs-link { | ||
color: #009926; | ||
} | ||
|
||
.hljs-symbol, | ||
.hljs-bullet { | ||
color: #990073; | ||
} | ||
|
||
.hljs-built_in, | ||
.hljs-builtin-name { | ||
color: #0086b3; | ||
} | ||
|
||
.hljs-meta { | ||
color: #999; | ||
font-weight: bold; | ||
} | ||
|
||
.hljs-deletion { | ||
background: #fdd; | ||
} | ||
|
||
.hljs-addition { | ||
background: #dfd; | ||
} | ||
|
||
.hljs-emphasis { | ||
font-style: italic; | ||
} | ||
|
||
.hljs-strong { | ||
font-weight: bold; | ||
} |
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# highlight.js | ||
|
||
Generated from https://highlightjs.org/download/ on 2017-08-30 | ||
|
||
Included languages: | ||
|
||
* bash | ||
* css | ||
* dart | ||
* java | ||
* javascript | ||
* json | ||
* markdown | ||
* objectivec | ||
* ruby - dragged in by `yaml` - 🙄 | ||
* shell | ||
* swift | ||
* xml - includes html | ||
* yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -797,7 +797,6 @@ class MarkdownDocument extends md.Document { | |
} | ||
|
||
bool specifiesLanguage = pre.classes.isNotEmpty; | ||
pre.classes.add('prettyprint'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you mention a bit more about how this is replaced? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
// Assume the user intended Dart if there are no other classes present. | ||
if (!specifiesLanguage) pre.classes.add('language-dart'); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please indicate somewhere in LICENSE/README where this and other new third-party libraries included come from (including URLs) and their licensing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done