Fixed code syntax-highlighting
This commit is contained in:
82
assets/syntax.scss
Normal file
82
assets/syntax.scss
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
/* Background */ .chroma { background-color: #f0f0f0 }
|
||||||
|
/* Other */ .chroma .x { }
|
||||||
|
/* Error */ .chroma .err { }
|
||||||
|
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||||
|
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
||||||
|
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
|
||||||
|
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||||
|
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||||
|
/* Keyword */ .chroma .k { color: #007020; font-weight: bold }
|
||||||
|
/* KeywordConstant */ .chroma .kc { color: #007020; font-weight: bold }
|
||||||
|
/* KeywordDeclaration */ .chroma .kd { color: #007020; font-weight: bold }
|
||||||
|
/* KeywordNamespace */ .chroma .kn { color: #007020; font-weight: bold }
|
||||||
|
/* KeywordPseudo */ .chroma .kp { color: #007020 }
|
||||||
|
/* KeywordReserved */ .chroma .kr { color: #007020; font-weight: bold }
|
||||||
|
/* KeywordType */ .chroma .kt { color: #902000 }
|
||||||
|
/* Name */ .chroma .n { }
|
||||||
|
/* NameAttribute */ .chroma .na { color: #4070a0 }
|
||||||
|
/* NameBuiltin */ .chroma .nb { color: #007020 }
|
||||||
|
/* NameBuiltinPseudo */ .chroma .bp { }
|
||||||
|
/* NameClass */ .chroma .nc { color: #0e84b5; font-weight: bold }
|
||||||
|
/* NameConstant */ .chroma .no { color: #60add5 }
|
||||||
|
/* NameDecorator */ .chroma .nd { color: #555555; font-weight: bold }
|
||||||
|
/* NameEntity */ .chroma .ni { color: #d55537; font-weight: bold }
|
||||||
|
/* NameException */ .chroma .ne { color: #007020 }
|
||||||
|
/* NameFunction */ .chroma .nf { color: #06287e }
|
||||||
|
/* NameFunctionMagic */ .chroma .fm { }
|
||||||
|
/* NameLabel */ .chroma .nl { color: #002070; font-weight: bold }
|
||||||
|
/* NameNamespace */ .chroma .nn { color: #0e84b5; font-weight: bold }
|
||||||
|
/* NameOther */ .chroma .nx { }
|
||||||
|
/* NameProperty */ .chroma .py { }
|
||||||
|
/* NameTag */ .chroma .nt { color: #062873; font-weight: bold }
|
||||||
|
/* NameVariable */ .chroma .nv { color: #bb60d5 }
|
||||||
|
/* NameVariableClass */ .chroma .vc { }
|
||||||
|
/* NameVariableGlobal */ .chroma .vg { }
|
||||||
|
/* NameVariableInstance */ .chroma .vi { }
|
||||||
|
/* NameVariableMagic */ .chroma .vm { }
|
||||||
|
/* Literal */ .chroma .l { }
|
||||||
|
/* LiteralDate */ .chroma .ld { }
|
||||||
|
/* LiteralString */ .chroma .s { color: #4070a0 }
|
||||||
|
/* LiteralStringAffix */ .chroma .sa { color: #4070a0 }
|
||||||
|
/* LiteralStringBacktick */ .chroma .sb { color: #4070a0 }
|
||||||
|
/* LiteralStringChar */ .chroma .sc { color: #4070a0 }
|
||||||
|
/* LiteralStringDelimiter */ .chroma .dl { color: #4070a0 }
|
||||||
|
/* LiteralStringDoc */ .chroma .sd { color: #4070a0; font-style: italic }
|
||||||
|
/* LiteralStringDouble */ .chroma .s2 { color: #4070a0 }
|
||||||
|
/* LiteralStringEscape */ .chroma .se { color: #4070a0; font-weight: bold }
|
||||||
|
/* LiteralStringHeredoc */ .chroma .sh { color: #4070a0 }
|
||||||
|
/* LiteralStringInterpol */ .chroma .si { color: #70a0d0; font-style: italic }
|
||||||
|
/* LiteralStringOther */ .chroma .sx { color: #c65d09 }
|
||||||
|
/* LiteralStringRegex */ .chroma .sr { color: #235388 }
|
||||||
|
/* LiteralStringSingle */ .chroma .s1 { color: #4070a0 }
|
||||||
|
/* LiteralStringSymbol */ .chroma .ss { color: #517918 }
|
||||||
|
/* LiteralNumber */ .chroma .m { color: #40a070 }
|
||||||
|
/* LiteralNumberBin */ .chroma .mb { color: #40a070 }
|
||||||
|
/* LiteralNumberFloat */ .chroma .mf { color: #40a070 }
|
||||||
|
/* LiteralNumberHex */ .chroma .mh { color: #40a070 }
|
||||||
|
/* LiteralNumberInteger */ .chroma .mi { color: #40a070 }
|
||||||
|
/* LiteralNumberIntegerLong */ .chroma .il { color: #40a070 }
|
||||||
|
/* LiteralNumberOct */ .chroma .mo { color: #40a070 }
|
||||||
|
/* Operator */ .chroma .o { color: #666666 }
|
||||||
|
/* OperatorWord */ .chroma .ow { color: #007020; font-weight: bold }
|
||||||
|
/* Punctuation */ .chroma .p { }
|
||||||
|
/* Comment */ .chroma .c { color: #60a0b0; font-style: italic }
|
||||||
|
/* CommentHashbang */ .chroma .ch { color: #60a0b0; font-style: italic }
|
||||||
|
/* CommentMultiline */ .chroma .cm { color: #60a0b0; font-style: italic }
|
||||||
|
/* CommentSingle */ .chroma .c1 { color: #60a0b0; font-style: italic }
|
||||||
|
/* CommentSpecial */ .chroma .cs { color: #60a0b0; background-color: #fff0f0 }
|
||||||
|
/* CommentPreproc */ .chroma .cp { color: #007020 }
|
||||||
|
/* CommentPreprocFile */ .chroma .cpf { color: #007020 }
|
||||||
|
/* Generic */ .chroma .g { }
|
||||||
|
/* GenericDeleted */ .chroma .gd { color: #a00000 }
|
||||||
|
/* GenericEmph */ .chroma .ge { font-style: italic }
|
||||||
|
/* GenericError */ .chroma .gr { color: #ff0000 }
|
||||||
|
/* GenericHeading */ .chroma .gh { color: #000080; font-weight: bold }
|
||||||
|
/* GenericInserted */ .chroma .gi { color: #00a000 }
|
||||||
|
/* GenericOutput */ .chroma .go { color: #888888 }
|
||||||
|
/* GenericPrompt */ .chroma .gp { color: #c65d09; font-weight: bold }
|
||||||
|
/* GenericStrong */ .chroma .gs { font-weight: bold }
|
||||||
|
/* GenericSubheading */ .chroma .gu { color: #800080; font-weight: bold }
|
||||||
|
/* GenericTraceback */ .chroma .gt { color: #0044dd }
|
||||||
|
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
|
||||||
|
/* TextWhitespace */ .chroma .w { color: #bbbbbb }
|
||||||
18
config.yaml
18
config.yaml
@@ -9,6 +9,10 @@ googleAnalytics: Nan
|
|||||||
disablePathToLower: true
|
disablePathToLower: true
|
||||||
enableGitInfo: true
|
enableGitInfo: true
|
||||||
|
|
||||||
|
#
|
||||||
|
pygmentsUseClasses: true
|
||||||
|
pygmentsCodefences: true
|
||||||
|
|
||||||
# Needed for mermaid/katex shortcodes
|
# Needed for mermaid/katex shortcodes
|
||||||
markup:
|
markup:
|
||||||
goldmark:
|
goldmark:
|
||||||
@@ -16,6 +20,18 @@ markup:
|
|||||||
unsafe: true
|
unsafe: true
|
||||||
tableOfContents:
|
tableOfContents:
|
||||||
startLevel: 1
|
startLevel: 1
|
||||||
|
highlight:
|
||||||
|
anchorLineNos: false
|
||||||
|
codeFences: true
|
||||||
|
guessSyntax: false
|
||||||
|
hl_Lines: ""
|
||||||
|
lineAnchors: ""
|
||||||
|
lineNoStart: 1
|
||||||
|
lineNos: false
|
||||||
|
lineNumbersInTable: true
|
||||||
|
noClasses: false
|
||||||
|
# style: monokai
|
||||||
|
tabWidth: 4
|
||||||
|
|
||||||
# Multi-lingual mode config
|
# Multi-lingual mode config
|
||||||
# There are different options to translate files
|
# There are different options to translate files
|
||||||
@@ -62,7 +78,7 @@ params:
|
|||||||
|
|
||||||
# Set source repository location.
|
# Set source repository location.
|
||||||
# Used for 'Last Modified' and 'Edit this page' links.
|
# Used for 'Last Modified' and 'Edit this page' links.
|
||||||
BookRepo: https://github.com/alex-shpak/hugo-book
|
BookRepo: https://github.com/mstraubAC/blog
|
||||||
|
|
||||||
# (Optional, default 'commit') Specifies commit portion of the link to the page's last modified
|
# (Optional, default 'commit') Specifies commit portion of the link to the page's last modified
|
||||||
# commit hash for 'doc' page type.
|
# commit hash for 'doc' page type.
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
{"Target":"book.min.4be43e690ceaa19b7fbef3c4bdc8144cf07a09c6b5b71e595b42a21af2dcec68.css","MediaType":"text/css","Data":{"Integrity":"sha256-S+Q+aQzqoZt/vvPEvcgUTPB6Cca1tx5ZW0KiGvLc7Gg="}}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.chroma{background-color:#f0f0f0}.chroma .lntd{vertical-align:top;padding:0;margin:0;border:0}.chroma .lntable{border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block}.chroma .hl{display:block;width:100%;background-color:#ffc}.chroma .lnt{margin-right:.4em;padding:0 .4em;color:#7f7f7f}.chroma .ln{margin-right:.4em;padding:0 .4em;color:#7f7f7f}.chroma .k{color:#007020;font-weight:700}.chroma .kc{color:#007020;font-weight:700}.chroma .kd{color:#007020;font-weight:700}.chroma .kn{color:#007020;font-weight:700}.chroma .kp{color:#007020}.chroma .kr{color:#007020;font-weight:700}.chroma .kt{color:#902000}.chroma .na{color:#4070a0}.chroma .nb{color:#007020}.chroma .nc{color:#0e84b5;font-weight:700}.chroma .no{color:#60add5}.chroma .nd{color:#555;font-weight:700}.chroma .ni{color:#d55537;font-weight:700}.chroma .ne{color:#007020}.chroma .nf{color:#06287e}.chroma .nl{color:#002070;font-weight:700}.chroma .nn{color:#0e84b5;font-weight:700}.chroma .nt{color:#062873;font-weight:700}.chroma .nv{color:#bb60d5}.chroma .s{color:#4070a0}.chroma .sa{color:#4070a0}.chroma .sb{color:#4070a0}.chroma .sc{color:#4070a0}.chroma .dl{color:#4070a0}.chroma .sd{color:#4070a0;font-style:italic}.chroma .s2{color:#4070a0}.chroma .se{color:#4070a0;font-weight:700}.chroma .sh{color:#4070a0}.chroma .si{color:#70a0d0;font-style:italic}.chroma .sx{color:#c65d09}.chroma .sr{color:#235388}.chroma .s1{color:#4070a0}.chroma .ss{color:#517918}.chroma .m{color:#40a070}.chroma .mb{color:#40a070}.chroma .mf{color:#40a070}.chroma .mh{color:#40a070}.chroma .mi{color:#40a070}.chroma .il{color:#40a070}.chroma .mo{color:#40a070}.chroma .o{color:#666}.chroma .ow{color:#007020;font-weight:700}.chroma .c{color:#60a0b0;font-style:italic}.chroma .ch{color:#60a0b0;font-style:italic}.chroma .cm{color:#60a0b0;font-style:italic}.chroma .c1{color:#60a0b0;font-style:italic}.chroma .cs{color:#60a0b0;background-color:#fff0f0}.chroma .cp{color:#007020}.chroma .cpf{color:#007020}.chroma .gd{color:#a00000}.chroma .ge{font-style:italic}.chroma .gr{color:red}.chroma .gh{color:navy;font-weight:700}.chroma .gi{color:#00a000}.chroma .go{color:#888}.chroma .gp{color:#c65d09;font-weight:700}.chroma .gs{font-weight:700}.chroma .gu{color:purple;font-weight:700}.chroma .gt{color:#04d}.chroma .gl{text-decoration:underline}.chroma .w{color:#bbb}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"Target":"syntax.min.c15b98f91b503db7a1f8d6d1ef27a4928fe90efebf6c5b8125797bded5952e55.css","MediaType":"text/css","Data":{"Integrity":"sha256-wVuY+RtQPbeh+NbR7yekko/pDv6/bFuBJXl73tWVLlU="}}
|
||||||
Reference in New Issue
Block a user