Skip to content

Commit 699cf6b

Browse files
committed
Fix code highlighting
1 parent d5af269 commit 699cf6b

2 files changed

Lines changed: 104 additions & 2 deletions

File tree

config.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ disqusShortname: klinki
1616
googleAnalytics: UA-89466580-1
1717
comments: true
1818

19+
markup:
20+
defaultMarkdownHandler: goldmark
21+
highlight:
22+
anchorLineNos: false
23+
codeFences: true
24+
guessSyntax: false
25+
hl_Lines: ""
26+
hl_inline: false
27+
lineAnchors: ""
28+
lineNoStart: 1
29+
lineNos: false
30+
lineNumbersInTable: false
31+
noClasses: true
32+
noHl: false
33+
style: monokai
34+
tabWidth: 4
35+
1936
languages:
2037
cs:
2138
contentDir: content/cs
@@ -85,8 +102,8 @@ params:
85102
twitter: klinkicz
86103
linkedin: davidklingenberg
87104
github: klinki
88-
89-
105+
customCss:
106+
- css/syntax.css
90107
# useFilenameDateAsFallback: true
91108

92109
taxonomies:

static/css/syntax.css

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/* Background */ .bg { color: #f8f8f2; background-color: #272822; }
2+
/* PreWrapper */ .chroma { color: #f8f8f2; background-color: #272822; }
3+
/* Other */ .chroma .x { }
4+
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
5+
/* CodeLine */ .chroma .cl { }
6+
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
7+
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
8+
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
9+
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
10+
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
11+
/* Line */ .chroma .line { display: flex; }
12+
/* Keyword */ .chroma .k { color: #66d9ef }
13+
/* KeywordConstant */ .chroma .kc { color: #66d9ef }
14+
/* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
15+
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
16+
/* KeywordPseudo */ .chroma .kp { color: #66d9ef }
17+
/* KeywordReserved */ .chroma .kr { color: #66d9ef }
18+
/* KeywordType */ .chroma .kt { color: #66d9ef }
19+
/* Name */ .chroma .n { }
20+
/* NameAttribute */ .chroma .na { color: #a6e22e }
21+
/* NameBuiltin */ .chroma .nb { }
22+
/* NameBuiltinPseudo */ .chroma .bp { }
23+
/* NameClass */ .chroma .nc { color: #a6e22e }
24+
/* NameConstant */ .chroma .no { color: #66d9ef }
25+
/* NameDecorator */ .chroma .nd { color: #a6e22e }
26+
/* NameEntity */ .chroma .ni { }
27+
/* NameException */ .chroma .ne { color: #a6e22e }
28+
/* NameFunction */ .chroma .nf { color: #a6e22e }
29+
/* NameFunctionMagic */ .chroma .fm { }
30+
/* NameLabel */ .chroma .nl { }
31+
/* NameNamespace */ .chroma .nn { }
32+
/* NameOther */ .chroma .nx { color: #a6e22e }
33+
/* NameProperty */ .chroma .py { }
34+
/* NameTag */ .chroma .nt { color: #f92672 }
35+
/* NameVariable */ .chroma .nv { }
36+
/* NameVariableClass */ .chroma .vc { }
37+
/* NameVariableGlobal */ .chroma .vg { }
38+
/* NameVariableInstance */ .chroma .vi { }
39+
/* NameVariableMagic */ .chroma .vm { }
40+
/* Literal */ .chroma .l { color: #ae81ff }
41+
/* LiteralDate */ .chroma .ld { color: #e6db74 }
42+
/* LiteralString */ .chroma .s { color: #e6db74 }
43+
/* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
44+
/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
45+
/* LiteralStringChar */ .chroma .sc { color: #e6db74 }
46+
/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
47+
/* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
48+
/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
49+
/* LiteralStringEscape */ .chroma .se { color: #ae81ff }
50+
/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
51+
/* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
52+
/* LiteralStringOther */ .chroma .sx { color: #e6db74 }
53+
/* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
54+
/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
55+
/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
56+
/* LiteralNumber */ .chroma .m { color: #ae81ff }
57+
/* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
58+
/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
59+
/* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
60+
/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
61+
/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
62+
/* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
63+
/* Operator */ .chroma .o { color: #f92672 }
64+
/* OperatorWord */ .chroma .ow { color: #f92672 }
65+
/* Punctuation */ .chroma .p { }
66+
/* Comment */ .chroma .c { color: #75715e }
67+
/* CommentHashbang */ .chroma .ch { color: #75715e }
68+
/* CommentMultiline */ .chroma .cm { color: #75715e }
69+
/* CommentSingle */ .chroma .c1 { color: #75715e }
70+
/* CommentSpecial */ .chroma .cs { color: #75715e }
71+
/* CommentPreproc */ .chroma .cp { color: #75715e }
72+
/* CommentPreprocFile */ .chroma .cpf { color: #75715e }
73+
/* Generic */ .chroma .g { }
74+
/* GenericDeleted */ .chroma .gd { color: #f92672 }
75+
/* GenericEmph */ .chroma .ge { font-style: italic }
76+
/* GenericError */ .chroma .gr { }
77+
/* GenericHeading */ .chroma .gh { }
78+
/* GenericInserted */ .chroma .gi { color: #a6e22e }
79+
/* GenericOutput */ .chroma .go { }
80+
/* GenericPrompt */ .chroma .gp { }
81+
/* GenericStrong */ .chroma .gs { font-weight: bold }
82+
/* GenericSubheading */ .chroma .gu { color: #75715e }
83+
/* GenericTraceback */ .chroma .gt { }
84+
/* GenericUnderline */ .chroma .gl { }
85+
/* TextWhitespace */ .chroma .w { }

0 commit comments

Comments
 (0)