Skip to content

Commit

Permalink
Add code block highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Oct 3, 2024
1 parent d68cd87 commit a36d886
Show file tree
Hide file tree
Showing 7 changed files with 666 additions and 12 deletions.
311 changes: 311 additions & 0 deletions docs/ElunaDoc/static/highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,311 @@
/*!
Theme: Mexico Light
Author: Sheldon Johnson
License: ~ MIT (or more permissive) [via base16-schemes-source]
Maintainer: @highlightjs/core-team
Version: 2021.09.0
*/
/*
WARNING: DO NOT EDIT THIS FILE DIRECTLY.
This theme file was auto-generated from the Base16 scheme mexico-light
by the Highlight.js Base16 template builder.
- https://github.com/highlightjs/base16-highlightjs
*/
/*
base00 #f8f8f8 Default Background
base01 #e8e8e8 Lighter Background (Used for status bars, line number and folding marks)
base02 #d8d8d8 Selection Background
base03 #b8b8b8 Comments, Invisibles, Line Highlighting
base04 #585858 Dark Foreground (Used for status bars)
base05 #383838 Default Foreground, Caret, Delimiters, Operators
base06 #282828 Light Foreground (Not often used)
base07 #181818 Light Background (Not often used)
base08 #ab4642 Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
base09 #dc9656 Integers, Boolean, Constants, XML Attributes, Markup Link Url
base0A #f79a0e Classes, Markup Bold, Search Text Background
base0B #538947 Strings, Inherited Class, Markup Code, Diff Inserted
base0C #4b8093 Support, Regular Expressions, Escape Characters, Markup Quotes
base0D #7cafc2 Functions, Methods, Attribute IDs, Headings
base0E #96609e Keywords, Storage, Selector, Markup Italic, Diff Changed
base0F #a16946 Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
*/
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}
code.hljs {
padding: 3px 5px
}
.hljs {
color: #383838;
background: #f8f8f8
}
.hljs::selection,
.hljs ::selection {
background-color: #d8d8d8;
color: #383838
}
/* purposely do not highlight these things */
.hljs-formula,
.hljs-params,
.hljs-property {

}
/* base03 - #b8b8b8 - Comments, Invisibles, Line Highlighting */
.hljs-comment {
color: #b8b8b8
}
/* base04 - #585858 - Dark Foreground (Used for status bars) */
.hljs-tag {
color: #585858
}
/* base05 - #383838 - Default Foreground, Caret, Delimiters, Operators */
.hljs-subst,
.hljs-punctuation,
.hljs-operator {
color: #383838
}
.hljs-operator {
opacity: 0.7
}
/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
.hljs-bullet,
.hljs-variable,
.hljs-template-variable,
.hljs-selector-tag,
.hljs-name,
.hljs-deletion {
color: #ab4642
}
/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
.hljs-symbol,
.hljs-number,
.hljs-link,
.hljs-attr,
.hljs-variable.constant_,
.hljs-literal {
color: #dc9656
}
/* base0A - Classes, Markup Bold, Search Text Background */
.hljs-title,
.hljs-class .hljs-title,
.hljs-title.class_ {
color: #f79a0e
}
.hljs-strong {
font-weight: bold;
color: #f79a0e
}
/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
.hljs-code,
.hljs-addition,
.hljs-title.class_.inherited__,
.hljs-string {
color: #538947
}
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
/* guessing */
.hljs-built_in,
.hljs-doctag,
.hljs-quote,
.hljs-keyword.hljs-atrule,
.hljs-regexp {
color: #4b8093
}
/* base0D - Functions, Methods, Attribute IDs, Headings */
.hljs-function .hljs-title,
.hljs-attribute,
.ruby .hljs-property,
.hljs-title.function_,
.hljs-section {
color: #7cafc2
}
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
/* .hljs-selector-id, */
/* .hljs-selector-class, */
/* .hljs-selector-attr, */
/* .hljs-selector-pseudo, */
.hljs-type,
.hljs-template-tag,
.diff .hljs-meta,
.hljs-keyword {
color: #96609e
}
.hljs-emphasis {
color: #96609e;
font-style: italic
}
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
/*
prevent top level .keyword and .string scopes
from leaking into meta by accident
*/
.hljs-meta,
.hljs-meta .hljs-keyword,
.hljs-meta .hljs-string {
color: #a16946
}
/* for v10 compatible themes */
.hljs-meta .hljs-keyword,
.hljs-meta-keyword {
font-weight: bold
}

/*!
Theme: Apprentice
Author: romainl
License: ~ MIT (or more permissive) [via base16-schemes-source]
Maintainer: @highlightjs/core-team
Version: 2021.09.0
*/
/*
WARNING: DO NOT EDIT THIS FILE DIRECTLY.
This theme file was auto-generated from the Base16 scheme apprentice
by the Highlight.js Base16 template builder.
- https://github.com/highlightjs/base16-highlightjs
*/
/*
base00 #262626 Default Background
base01 #303030 Lighter Background (Used for status bars, line number and folding marks)
base02 #333333 Selection Background
base03 #6C6C6C Comments, Invisibles, Line Highlighting
base04 #787878 Dark Foreground (Used for status bars)
base05 #BCBCBC Default Foreground, Caret, Delimiters, Operators
base06 #C9C9C9 Light Foreground (Not often used)
base07 #FFFFFF Light Background (Not often used)
base08 #5F8787 Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
base09 #FF8700 Integers, Boolean, Constants, XML Attributes, Markup Link Url
base0A #5F8787 Classes, Markup Bold, Search Text Background
base0B #87AF87 Strings, Inherited Class, Markup Code, Diff Inserted
base0C #5F875F Support, Regular Expressions, Escape Characters, Markup Quotes
base0D #FFFFAF Functions, Methods, Attribute IDs, Headings
base0E #87AFD7 Keywords, Storage, Selector, Markup Italic, Diff Changed
base0F #5F87AF Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
*/
.dark-mode pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}
.dark-mode code.hljs {
padding: 3px 5px
}
.dark-mode .hljs {
color: #BCBCBC;
background: #262626
}
.dark-mode .hljs::selection,
.dark-mode .hljs ::selection {
background-color: #333333;
color: #BCBCBC
}
/* purposely do not highlight these things */
.dark-mode .hljs-formula,
.dark-mode .hljs-params,
.dark-mode .hljs-property {

}
/* base03 - #6C6C6C - Comments, Invisibles, Line Highlighting */
.dark-mode .hljs-comment {
color: #6C6C6C
}
/* base04 - #787878 - Dark Foreground (Used for status bars) */
.dark-mode .hljs-tag {
color: #787878
}
/* base05 - #BCBCBC - Default Foreground, Caret, Delimiters, Operators */
.dark-mode .hljs-subst,
.dark-mode .hljs-punctuation,
.dark-mode .hljs-operator {
color: #BCBCBC
}
.dark-mode .hljs-operator {
opacity: 0.7
}
/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
.dark-mode .hljs-bullet,
.dark-mode .hljs-variable,
.dark-mode .hljs-template-variable,
.dark-mode .hljs-selector-tag,
.dark-mode .hljs-name,
.dark-mode .hljs-deletion {
color: #5F8787
}
/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
.dark-mode .hljs-symbol,
.dark-mode .hljs-number,
.dark-mode .hljs-link,
.dark-mode .hljs-attr,
.dark-mode .hljs-variable.constant_,
.dark-mode .hljs-literal {
color: #FF8700
}
/* base0A - Classes, Markup Bold, Search Text Background */
.dark-mode .hljs-title,
.dark-mode .hljs-class .hljs-title,
.dark-mode .hljs-title.class_ {
color: #5F8787
}
.dark-mode .hljs-strong {
font-weight: bold;
color: #5F8787
}
/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
.dark-mode .hljs-code,
.dark-mode .hljs-addition,
.dark-mode .hljs-title.class_.inherited__,
.dark-mode .hljs-string {
color: #87AF87
}
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
/* guessing */
.dark-mode .hljs-built_in,
.dark-mode .hljs-doctag,
.dark-mode .hljs-quote,
.dark-mode .hljs-keyword.hljs-atrule,
.dark-mode .hljs-regexp {
color: #5F875F
}
/* base0D - Functions, Methods, Attribute IDs, Headings */
.dark-mode .hljs-function .hljs-title,
.dark-mode .hljs-attribute,
.dark-mode .ruby .hljs-property,
.dark-mode .hljs-title.function_,
.dark-mode .hljs-section {
color: #FFFFAF
}
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
/* .hljs-selector-id, */
/* .hljs-selector-class, */
/* .hljs-selector-attr, */
/* .hljs-selector-pseudo, */
.dark-mode .hljs-type,
.dark-mode .hljs-template-tag,
.dark-mode .diff .hljs-meta,
.dark-mode .hljs-keyword {
color: #87AFD7
}
.dark-mode .hljs-emphasis {
color: #87AFD7;
font-style: italic
}
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
/*
prevent top level .keyword and .string scopes
from leaking into meta by accident
*/
.dark-mode .hljs-meta,
.dark-mode .hljs-meta .hljs-keyword,
.dark-mode .hljs-meta .hljs-string {
color: #5F87AF
}
/* for v10 compatible themes */
.dark-mode .hljs-meta .hljs-keyword,
.dark-mode .hljs-meta-keyword {
font-weight: bold
}
Loading

0 comments on commit a36d886

Please sign in to comment.