-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds rudimentary syntax highlighting for code blocks
- Loading branch information
1 parent
4dfe0f0
commit b08ecf8
Showing
5 changed files
with
1,650 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
pre code.hljs { | ||
display: block; | ||
overflow-x: auto; | ||
padding: 1em; | ||
} | ||
code.hljs { | ||
padding: 3px 5px; | ||
color: #f00; | ||
} | ||
.hljs { | ||
color: #eaeaea; | ||
background: #000; | ||
} | ||
.hljs-subst { | ||
color: #eaeaea; | ||
} | ||
.hljs-emphasis { | ||
font-style: italic; | ||
} | ||
.hljs-strong { | ||
font-weight: 700; | ||
} | ||
.hljs-type { | ||
color: #eaeaea; | ||
} | ||
.hljs-params { | ||
color: #88ff2d; | ||
} | ||
|
||
.hljs-number { | ||
color: #0cf; | ||
} | ||
.hljs-literal, | ||
.hljs-name { | ||
color: red; | ||
font-weight: bolder; | ||
} | ||
.hljs-comment { | ||
color: #ff00ff; | ||
font-style: italic; | ||
} | ||
.hljs-quote, | ||
.hljs-selector-id { | ||
color: #0ff; | ||
} | ||
|
||
.hljs-built_in, | ||
.hljs-title { | ||
color: rgb(108, 103, 255); | ||
} | ||
|
||
.hljs-template-variable, | ||
.hljs-variable { | ||
color: #0ff; | ||
font-weight: 700; | ||
} | ||
.hljs-keyword, | ||
.hljs-selector-class, | ||
.hljs-symbol { | ||
color: #ffbb00; | ||
font-weight: bold; | ||
} | ||
.hljs-bullet, | ||
.hljs-string { | ||
color: #f33; | ||
} | ||
.hljs-section, | ||
.hljs-tag { | ||
color: #000fff; | ||
} | ||
.hljs-selector-tag { | ||
color: #000fff; | ||
font-weight: 700; | ||
} | ||
|
||
.hljs-attribute, | ||
.hljs-link, | ||
.hljs-regexp { | ||
color: #f0f; | ||
} | ||
.hljs-meta { | ||
color: #fff; | ||
font-weight: bolder; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.