Skip to content

Commit 1f6cdbc

Browse files
committed
Merge pull request #92 from php-http/highlighting
Steal highlighting CSS from FOS HTTP Cache
2 parents c9a4945 + 6e22041 commit 1f6cdbc

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

_static/highlight.css

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
div.highlight {
2+
background-color: #343131 !important;
3+
}
4+
5+
div.highlight pre {
6+
border: none;
7+
color: white !important;
8+
}
9+
10+
div.highlight pre span.n,
11+
div.highlight pre span.na,
12+
div.highlight pre span.nb,
13+
div.highlight pre span.nc,
14+
div.highlight pre span.nf,
15+
div.highlight pre span.nx,
16+
div.highlight pre span.kn {
17+
color: white;
18+
}
19+
20+
div.highlight pre span.nv {
21+
color: #6ab0de
22+
}
23+
24+
div.highlight pre span.k, div.highlight pre span.o {
25+
color: #ff8400;
26+
}
27+
28+
div.highlight pre span.mi,
29+
div.highlight pre span.s,
30+
div.highlight pre span.s1,
31+
div.highlight pre span.s2,
32+
div.highlight pre span.sr {
33+
color: #56db3a;
34+
}
35+
36+
div.highlight pre span.hll {
37+
background-color: #848484;
38+
}
39+
40+
div.highlight pre span.hll span.c1 {
41+
color: #d8d8d8;
42+
}
43+
44+
div.highlight pre span.p {
45+
color: #b3b3b3;
46+
}
47+
48+
table.highlighttable td {
49+
padding: 0;
50+
}
51+
52+
table.highlighttable td div.linenodiv {
53+
text-align: right;
54+
width: 38px;
55+
}

conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@
152152
# Add any paths that contain custom static files (such as style sheets) here,
153153
# relative to this directory. They are copied after the builtin static files,
154154
# so a file named "default.css" will overwrite the builtin "default.css".
155-
#html_static_path = ['_static']
155+
html_static_path = ['_static']
156+
157+
def setup(app):
158+
app.add_stylesheet('highlight.css')
156159

157160
# Add any extra paths that contain custom files (such as robots.txt or
158161
# .htaccess) here, relative to this directory. These files are copied

0 commit comments

Comments
 (0)