mirror of
https://github.com/vale981/highlight-lisp
synced 2025-03-04 17:01:38 -05:00
making highlight/theme class independent of selection class
This commit is contained in:
parent
0bbcc805e3
commit
e9bd2476b8
5 changed files with 80 additions and 79 deletions
|
@ -379,6 +379,7 @@ var highlight_lisp = function() {
|
|||
*/
|
||||
this.highlight_element = function(code_el)
|
||||
{
|
||||
code_el.className += ' hl-highlighted';
|
||||
var html = code_el.innerHTML;
|
||||
// can't have &...;'s running wild like a pack of animals...
|
||||
html = html.replace(/&/g, '&');
|
||||
|
|
|
@ -2,27 +2,27 @@
|
|||
* Inspired by highlight.js's "Tomorrow night" theme
|
||||
*/
|
||||
pre { white-space: pre; background-color: #1d1f21; border: 0px solid #ccc; font-size: 13px; line-height: 19px; overflow: auto; padding: 6px 10px; border-radius: 3px; }
|
||||
pre code.lisp {white-space: pre; margin: 0; padding: 0; background: none; border: none; overflow-x: auto; font-size: 13px;}
|
||||
code.lisp {margin: 0 2px; padding: 0 5px; white-space: nowrap; font-family: Consolas, "Liberation Mono", Courier, monospace; background: #f8f8f8; border: 1px solid #eaeaea; border-radius: 3px;}
|
||||
pre code.hl-highlighted {white-space: pre; margin: 0; padding: 0; background: none; border: none; overflow-x: auto; font-size: 13px;}
|
||||
code.hl-highlighted {margin: 0 2px; padding: 0 5px; white-space: nowrap; font-family: Consolas, "Liberation Mono", Courier, monospace; background: #f8f8f8; border: 1px solid #eaeaea; border-radius: 3px;}
|
||||
|
||||
code.lisp {color: #c5c8c6;}
|
||||
code.lisp .function {color: #abc; color: #cba;}
|
||||
code.lisp .function.known {color: #81a2be; color: #91b2ce;}
|
||||
code.lisp .function.known.special {color: #ba7; font-weight: bold;}
|
||||
code.lisp .keyword {color: #b299ab;}
|
||||
code.lisp .keyword.known {color: #b294bb;}
|
||||
code.lisp .symbol {color: #c9c;}
|
||||
code.lisp .lambda-list {color: #9aa;}
|
||||
code.lisp .number {color: #c76;}
|
||||
code.lisp .variable.known {color: #9dd;}
|
||||
code.lisp .variable.global {color: #aaa;}
|
||||
code.lisp .variable.constant {color: #a77;}
|
||||
code.lisp .nil {color: #de935f;}
|
||||
code.lisp .list {}
|
||||
code.hl-highlighted {color: #c5c8c6;}
|
||||
code.hl-highlighted .function {color: #abc; color: #cba;}
|
||||
code.hl-highlighted .function.known {color: #81a2be; color: #91b2ce;}
|
||||
code.hl-highlighted .function.known.special {color: #ba7; font-weight: bold;}
|
||||
code.hl-highlighted .keyword {color: #b299ab;}
|
||||
code.hl-highlighted .keyword.known {color: #b294bb;}
|
||||
code.hl-highlighted .symbol {color: #c9c;}
|
||||
code.hl-highlighted .lambda-list {color: #9aa;}
|
||||
code.hl-highlighted .number {color: #c76;}
|
||||
code.hl-highlighted .variable.known {color: #9dd;}
|
||||
code.hl-highlighted .variable.global {color: #aaa;}
|
||||
code.hl-highlighted .variable.constant {color: #a77;}
|
||||
code.hl-highlighted .nil {color: #de935f;}
|
||||
code.hl-highlighted .list {}
|
||||
|
||||
code.lisp .string, code.lisp .string * {color: #b5bd88 !important;}
|
||||
code.lisp .comment,
|
||||
code.lisp .comment *,
|
||||
code.lisp .comment .string
|
||||
code.lisp .comment .string * {color: #777 !important;}
|
||||
code.lisp .string .comment {color: #b5bd88 !important;}
|
||||
code.hl-highlighted .string, code.hl-highlighted .string * {color: #b5bd88 !important;}
|
||||
code.hl-highlighted .comment,
|
||||
code.hl-highlighted .comment *,
|
||||
code.hl-highlighted .comment .string
|
||||
code.hl-highlighted .comment .string * {color: #777 !important;}
|
||||
code.hl-highlighted .string .comment {color: #b5bd88 !important;}
|
||||
|
|
|
@ -2,27 +2,27 @@
|
|||
* Inspired by github's default code highlighting
|
||||
*/
|
||||
pre { white-space: pre; background-color: #f8f8f8; border: 1px solid #ccc; font-size: 13px; line-height: 19px; overflow: auto; padding: 6px 10px; border-radius: 3px; }
|
||||
pre code.lisp {white-space: pre; margin: 0; padding: 0; background: none; border: none; overflow-x: auto; font-size: 13px;}
|
||||
code.lisp {margin: 0 2px; padding: 0 5px; white-space: nowrap; font-family: Consolas, "Liberation Mono", Courier, monospace; background: #f8f8f8; border: 1px solid #eaeaea; border-radius: 3px;}
|
||||
pre code.hl-highlighted {white-space: pre; margin: 0; padding: 0; background: none; border: none; overflow-x: auto; font-size: 13px;}
|
||||
code.hl-highlighted {margin: 0 2px; padding: 0 5px; white-space: nowrap; font-family: Consolas, "Liberation Mono", Courier, monospace; background: #f8f8f8; border: 1px solid #eaeaea; border-radius: 3px;}
|
||||
|
||||
code.lisp {color: #008080;}
|
||||
code.lisp .function {color: #008080;}
|
||||
code.lisp .function.known {color: #800603;}
|
||||
code.lisp .function.known.special {color: #2d2d2d; font-weight: bold;}
|
||||
code.lisp .keyword {color: #990073;}
|
||||
code.lisp .keyword.known {color: #990073;}
|
||||
code.lisp .symbol {color: #75a;}
|
||||
code.lisp .lambda-list {color: #966;}
|
||||
code.lisp .number {color: #800;}
|
||||
code.lisp .variable.known {color: #c3c;}
|
||||
code.lisp .variable.global {color: #939;}
|
||||
code.lisp .variable.constant {color: #229;}
|
||||
code.lisp .nil {color: #f00;}
|
||||
code.lisp .list {color: #222;}
|
||||
code.hl-highlighted {color: #008080;}
|
||||
code.hl-highlighted .function {color: #008080;}
|
||||
code.hl-highlighted .function.known {color: #800603;}
|
||||
code.hl-highlighted .function.known.special {color: #2d2d2d; font-weight: bold;}
|
||||
code.hl-highlighted .keyword {color: #990073;}
|
||||
code.hl-highlighted .keyword.known {color: #990073;}
|
||||
code.hl-highlighted .symbol {color: #75a;}
|
||||
code.hl-highlighted .lambda-list {color: #966;}
|
||||
code.hl-highlighted .number {color: #800;}
|
||||
code.hl-highlighted .variable.known {color: #c3c;}
|
||||
code.hl-highlighted .variable.global {color: #939;}
|
||||
code.hl-highlighted .variable.constant {color: #229;}
|
||||
code.hl-highlighted .nil {color: #f00;}
|
||||
code.hl-highlighted .list {color: #222;}
|
||||
|
||||
code.lisp .string, code.lisp .string * {color: #d14 !important;}
|
||||
code.lisp .comment,
|
||||
code.lisp .comment *,
|
||||
code.lisp .comment .string
|
||||
code.lisp .comment .string * {color: #aaa !important;}
|
||||
code.lisp .string .comment {color: #d14 !important;}
|
||||
code.hl-highlighted .string, code.hl-highlighted .string * {color: #d14 !important;}
|
||||
code.hl-highlighted .comment,
|
||||
code.hl-highlighted .comment *,
|
||||
code.hl-highlighted .comment .string
|
||||
code.hl-highlighted .comment .string * {color: #aaa !important;}
|
||||
code.hl-highlighted .string .comment {color: #d14 !important;}
|
||||
|
|
|
@ -2,17 +2,17 @@ pre { white-space: pre; background-color: #f8f8f8; border: 1px solid #ccc; font-
|
|||
pre code {white-space: pre; margin: 0; padding: 0; background: none; border: none; overflow-x: auto; font-size: 13px;}
|
||||
code {margin: 0 2px; padding: 0 5px; white-space: nowrap; font-family: Consolas, "Liberation Mono", Courier, monospace; background: #f8f8f8; border: 1px solid #eaeaea; border-radius: 3px;}
|
||||
|
||||
code.lisp .function.known {color: #a93;}
|
||||
code.lisp .function.known.special {color: #2a3;}
|
||||
code.lisp .keyword {color: #7aa;}
|
||||
code.lisp .keyword.known {color: #4bb;}
|
||||
code.lisp .symbol {color: #75a;}
|
||||
code.lisp .lambda-list {color: #966;}
|
||||
code.lisp .number {color: #800;}
|
||||
code.lisp .variable.known {color: #c3c;}
|
||||
code.lisp .variable.global {color: #939;}
|
||||
code.lisp .variable.constant {color: #229;}
|
||||
code.lisp .nil {color: #f00;}
|
||||
code.hl-highlighted .function.known {color: #a93;}
|
||||
code.hl-highlighted .function.known.special {color: #2a3;}
|
||||
code.hl-highlighted .keyword {color: #7aa;}
|
||||
code.hl-highlighted .keyword.known {color: #4bb;}
|
||||
code.hl-highlighted .symbol {color: #75a;}
|
||||
code.hl-highlighted .lambda-list {color: #966;}
|
||||
code.hl-highlighted .number {color: #800;}
|
||||
code.hl-highlighted .variable.known {color: #c3c;}
|
||||
code.hl-highlighted .variable.global {color: #939;}
|
||||
code.hl-highlighted .variable.constant {color: #229;}
|
||||
code.hl-highlighted .nil {color: #f00;}
|
||||
|
||||
code.lisp .comment, code.lisp .comment *, code.lisp .comment .string {color: #aaa !important;}
|
||||
code.lisp .string, code.lisp .string * {color: #088 !important;}
|
||||
code.hl-highlighted .comment, code.hl-highlighted .comment *, code.hl-highlighted .comment .string {color: #aaa !important;}
|
||||
code.hl-highlighted .string, code.hl-highlighted .string * {color: #088 !important;}
|
||||
|
|
|
@ -2,27 +2,27 @@
|
|||
* Inspired by highlight.js's "Tomorrow night" theme
|
||||
*/
|
||||
pre { white-space: pre; background-color: #1d1f21; border: 0px solid #ccc; font-size: 13px; line-height: 19px; overflow: auto; padding: 6px 10px; border-radius: 3px; }
|
||||
pre code.lisp {white-space: pre; margin: 0; padding: 0; background: none; border: none; overflow-x: auto; font-size: 13px;}
|
||||
code.lisp {margin: 0 2px; padding: 0 5px; white-space: nowrap; font-family: Consolas, "Liberation Mono", Courier, monospace; border: 1px solid #eaeaea; border-radius: 3px;}
|
||||
pre code.hl-highlighted {white-space: pre; margin: 0; padding: 0; background: none; border: none; overflow-x: auto; font-size: 13px;}
|
||||
code.hl-highlighted {margin: 0 2px; padding: 0 5px; white-space: nowrap; font-family: Consolas, "Liberation Mono", Courier, monospace; border: 1px solid #eaeaea; border-radius: 3px;}
|
||||
|
||||
code.lisp {color: #c5c8c6; color: #c9bf9f;}
|
||||
code.lisp .function {color: #d9c382;}
|
||||
code.lisp .function.known {color: #d9c382;}
|
||||
code.lisp .function.known.special {color: #d9c382; font-weight: bold;}
|
||||
code.lisp .keyword {color: #74b5ad;}
|
||||
code.lisp .keyword.known {color: #91b2ce;}
|
||||
code.lisp .symbol {color: #db919e;}
|
||||
code.lisp .lambda-list {color: #86adad;}
|
||||
code.lisp .number {color: #fa879c;}
|
||||
code.lisp .variable.known {color: #db697e;}
|
||||
code.lisp .variable.global {color: #96a646;}
|
||||
code.lisp .variable.constant {color: #96a646;}
|
||||
code.lisp .nil {color: #db919e; font-weight: bold;}
|
||||
code.lisp .list {}
|
||||
code.hl-highlighted {color: #c5c8c6; color: #c9bf9f;}
|
||||
code.hl-highlighted .function {color: #d9c382;}
|
||||
code.hl-highlighted .function.known {color: #d9c382;}
|
||||
code.hl-highlighted .function.known.special {color: #d9c382; font-weight: bold;}
|
||||
code.hl-highlighted .keyword {color: #74b5ad;}
|
||||
code.hl-highlighted .keyword.known {color: #91b2ce;}
|
||||
code.hl-highlighted .symbol {color: #db919e;}
|
||||
code.hl-highlighted .lambda-list {color: #86adad;}
|
||||
code.hl-highlighted .number {color: #fa879c;}
|
||||
code.hl-highlighted .variable.known {color: #db697e;}
|
||||
code.hl-highlighted .variable.global {color: #96a646;}
|
||||
code.hl-highlighted .variable.constant {color: #96a646;}
|
||||
code.hl-highlighted .nil {color: #db919e; font-weight: bold;}
|
||||
code.hl-highlighted .list {}
|
||||
|
||||
code.lisp .string, code.lisp .string * {color: #db7d8e !important;}
|
||||
code.lisp .comment,
|
||||
code.lisp .comment *,
|
||||
code.lisp .comment .string
|
||||
code.lisp .comment .string * {color: #777 !important;}
|
||||
code.lisp .string .comment {color: #db7d8e !important;}
|
||||
code.hl-highlighted .string, code.hl-highlighted .string * {color: #db7d8e !important;}
|
||||
code.hl-highlighted .comment,
|
||||
code.hl-highlighted .comment *,
|
||||
code.hl-highlighted .comment .string
|
||||
code.hl-highlighted .comment .string * {color: #777 !important;}
|
||||
code.hl-highlighted .string .comment {color: #db7d8e !important;}
|
||||
|
|
Loading…
Add table
Reference in a new issue