Skip to content

Commit 4a0f222

Browse files
committed
syntax highlighting
1 parent 0e569ff commit 4a0f222

File tree

4 files changed

+67
-3
lines changed

4 files changed

+67
-3
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ gem 'jekyll-paginate'
44
gem 'jekyll-sitemap'
55
gem 'tzinfo'
66
gem 'tzinfo-data'
7+
gem 'rouge'
78

89
gem "webrick", "~> 1.7"
910

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ The site is built with [Jekyll](https://github.com/jekyll/jekyll):
1212

1313
#. Before you start:
1414

15-
gem install bundler jekyll jekyll-feed jekyll-paginate jekyll-sitemap
16-
17-
If anything is missed:
15+
gem install bundler
16+
17+
Install from Gemfile list:
1818

1919
bundle install
2020

css/app.css

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "default.css";
2+
13
h1, h2, h3, h4, h5 {
24
/*text-align: center;*/
35
}

css/default.css

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
.highlight .hll { background-color: #ffffcc }
2+
.highlight .c { color: #408080; font-style: italic } /* Comment */
3+
.highlight .err { border: 1px solid #FF0000 } /* Error */
4+
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
5+
.highlight .o { color: #666666 } /* Operator */
6+
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
7+
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
8+
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
9+
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
10+
.highlight .gd { color: #A00000 } /* Generic.Deleted */
11+
.highlight .ge { font-style: italic } /* Generic.Emph */
12+
.highlight .gr { color: #FF0000 } /* Generic.Error */
13+
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
14+
.highlight .gi { color: #00A000 } /* Generic.Inserted */
15+
.highlight .go { color: #808080 } /* Generic.Output */
16+
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
17+
.highlight .gs { font-weight: bold } /* Generic.Strong */
18+
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
19+
.highlight .gt { color: #0040D0 } /* Generic.Traceback */
20+
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
21+
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
22+
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
23+
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
24+
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
25+
.highlight .kt { color: #B00040 } /* Keyword.Type */
26+
.highlight .m { color: #666666 } /* Literal.Number */
27+
.highlight .s { color: #BA2121 } /* Literal.String */
28+
.highlight .na { color: #7D9029 } /* Name.Attribute */
29+
.highlight .nb { color: #008000 } /* Name.Builtin */
30+
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
31+
.highlight .no { color: #880000 } /* Name.Constant */
32+
.highlight .nd { color: #AA22FF } /* Name.Decorator */
33+
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
34+
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
35+
.highlight .nf { color: #0000FF } /* Name.Function */
36+
.highlight .nl { color: #A0A000 } /* Name.Label */
37+
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
38+
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
39+
.highlight .nv { color: #19177C } /* Name.Variable */
40+
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
41+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
42+
.highlight .mf { color: #666666 } /* Literal.Number.Float */
43+
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
44+
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
45+
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
46+
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
47+
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
48+
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
49+
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
50+
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
51+
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
52+
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
53+
.highlight .sx { color: #008000 } /* Literal.String.Other */
54+
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
55+
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
56+
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
57+
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
58+
.highlight .vc { color: #19177C } /* Name.Variable.Class */
59+
.highlight .vg { color: #19177C } /* Name.Variable.Global */
60+
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
61+
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */

0 commit comments

Comments
 (0)