Skip to content

Commit edd2ddb

Browse files
Anton VanhouckeAnton Vanhoucke
authored andcommitted
Python code highlighting
1 parent c96d21f commit edd2ddb

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

_includes/head.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<!-- Nav infrastructure and misc utils (search, user cards, embeds, CC license) -->
1414
<link rel="stylesheet" href="{{ site.github.url }}/stylesheets/infrastructure-utils.css" />
1515

16+
<!-- Python code highlighting -->
17+
<link rel="stylesheet" href="{{ site.github.url }}/stylesheets/pygments/monokai.css" />
18+
1619
<!-- 3rd-party libraries -->
1720
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
1821
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

stylesheets/pygments/monokai.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
.hll { background-color: #49483e }
2+
.c { color: #75715e } /* Comment */
3+
.err { color: #960050; background-color: #1e0010 } /* Error */
4+
.k { color: #66d9ef } /* Keyword */
5+
.l { color: #ae81ff } /* Literal */
6+
.n { color: #f8f8f2 } /* Name */
7+
.o { color: #f92672 } /* Operator */
8+
.p { color: #f8f8f2 } /* Punctuation */
9+
.cm { color: #75715e } /* Comment.Multiline */
10+
.cp { color: #75715e } /* Comment.Preproc */
11+
.c1 { color: #75715e } /* Comment.Single */
12+
.cs { color: #75715e } /* Comment.Special */
13+
.gd { color: #f92672 } /* Generic.Deleted */
14+
.ge { font-style: italic } /* Generic.Emph */
15+
.gi { color: #a6e22e } /* Generic.Inserted */
16+
.gs { font-weight: bold } /* Generic.Strong */
17+
.gu { color: #75715e } /* Generic.Subheading */
18+
.kc { color: #66d9ef } /* Keyword.Constant */
19+
.kd { color: #66d9ef } /* Keyword.Declaration */
20+
.kn { color: #f92672 } /* Keyword.Namespace */
21+
.kp { color: #66d9ef } /* Keyword.Pseudo */
22+
.kr { color: #66d9ef } /* Keyword.Reserved */
23+
.kt { color: #66d9ef } /* Keyword.Type */
24+
.ld { color: #e6db74 } /* Literal.Date */
25+
.m { color: #ae81ff } /* Literal.Number */
26+
.s { color: #e6db74 } /* Literal.String */
27+
.na { color: #a6e22e } /* Name.Attribute */
28+
.nb { color: #f8f8f2 } /* Name.Builtin */
29+
.nc { color: #a6e22e } /* Name.Class */
30+
.no { color: #66d9ef } /* Name.Constant */
31+
.nd { color: #a6e22e } /* Name.Decorator */
32+
.ni { color: #f8f8f2 } /* Name.Entity */
33+
.ne { color: #a6e22e } /* Name.Exception */
34+
.nf { color: #a6e22e } /* Name.Function */
35+
.nl { color: #f8f8f2 } /* Name.Label */
36+
.nn { color: #f8f8f2 } /* Name.Namespace */
37+
.nx { color: #a6e22e } /* Name.Other */
38+
.py { color: #f8f8f2 } /* Name.Property */
39+
.nt { color: #f92672 } /* Name.Tag */
40+
.nv { color: #f8f8f2 } /* Name.Variable */
41+
.ow { color: #f92672 } /* Operator.Word */
42+
.w { color: #f8f8f2 } /* Text.Whitespace */
43+
.mb { color: #ae81ff } /* Literal.Number.Bin */
44+
.mf { color: #ae81ff } /* Literal.Number.Float */
45+
.mh { color: #ae81ff } /* Literal.Number.Hex */
46+
.mi { color: #ae81ff } /* Literal.Number.Integer */
47+
.mo { color: #ae81ff } /* Literal.Number.Oct */
48+
.sb { color: #e6db74 } /* Literal.String.Backtick */
49+
.sc { color: #e6db74 } /* Literal.String.Char */
50+
.sd { color: #e6db74 } /* Literal.String.Doc */
51+
.s2 { color: #e6db74 } /* Literal.String.Double */
52+
.se { color: #ae81ff } /* Literal.String.Escape */
53+
.sh { color: #e6db74 } /* Literal.String.Heredoc */
54+
.si { color: #e6db74 } /* Literal.String.Interpol */
55+
.sx { color: #e6db74 } /* Literal.String.Other */
56+
.sr { color: #e6db74 } /* Literal.String.Regex */
57+
.s1 { color: #e6db74 } /* Literal.String.Single */
58+
.ss { color: #e6db74 } /* Literal.String.Symbol */
59+
.bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
60+
.vc { color: #f8f8f2 } /* Name.Variable.Class */
61+
.vg { color: #f8f8f2 } /* Name.Variable.Global */
62+
.vi { color: #f8f8f2 } /* Name.Variable.Instance */
63+
.il { color: #ae81ff } /* Literal.Number.Integer.Long */

0 commit comments

Comments
 (0)