Merge lp:~cjwatson/loggerhead/pygments-2.2.0-css into lp:loggerhead

Proposed by Colin Watson
Status: Merged
Merged at revision: 492
Proposed branch: lp:~cjwatson/loggerhead/pygments-2.2.0-css
Merge into: lp:loggerhead
Diff against target: 111 lines (+48/-39)
1 file modified
loggerhead/static/css/highlight.css (+48/-39)
To merge this branch: bzr merge lp:~cjwatson/loggerhead/pygments-2.2.0-css
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Approve
Loggerhead Reviewers Pending
Review via email: mp+335658@code.launchpad.net

Commit message

Update highlight.css to Pygments 2.2.0.

Description of the change

This is still compatible with previous versions. I generated it as follows:

  from pygments.formatters import HtmlFormatter
  print(HtmlFormatter(
      style='colorful', nowrap=True, classprefix='pyg-').get_style_defs())

To post a comment you must log in.
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loggerhead/static/css/highlight.css'
2--- loggerhead/static/css/highlight.css 2009-03-01 20:16:18 +0000
3+++ loggerhead/static/css/highlight.css 2018-01-03 13:40:35 +0000
4@@ -1,59 +1,68 @@
5-.pyg-c { color: #808080 } /* Comment */
6-.pyg-err { color: #F00000; background-color: #F0A0A0 } /* Error */
7-.pyg-k { color: #008000; font-weight: bold } /* Keyword */
8-.pyg-o { color: #303030 } /* Operator */
9-.pyg-cm { color: #808080 } /* Comment.Multiline */
10-.pyg-cp { color: #507090 } /* Comment.Preproc */
11-.pyg-c1 { color: #808080 } /* Comment.Single */
12+.hll { background-color: #ffffcc }
13+.pyg-c { color: #888888 } /* Comment */
14+.pyg-err { color: #FF0000; background-color: #FFAAAA } /* Error */
15+.pyg-k { color: #008800; font-weight: bold } /* Keyword */
16+.pyg-o { color: #333333 } /* Operator */
17+.pyg-ch { color: #888888 } /* Comment.Hashbang */
18+.pyg-cm { color: #888888 } /* Comment.Multiline */
19+.pyg-cp { color: #557799 } /* Comment.Preproc */
20+.pyg-cpf { color: #888888 } /* Comment.PreprocFile */
21+.pyg-c1 { color: #888888 } /* Comment.Single */
22 .pyg-cs { color: #cc0000; font-weight: bold } /* Comment.Special */
23 .pyg-gd { color: #A00000 } /* Generic.Deleted */
24 .pyg-ge { font-style: italic } /* Generic.Emph */
25 .pyg-gr { color: #FF0000 } /* Generic.Error */
26 .pyg-gh { color: #000080; font-weight: bold } /* Generic.Heading */
27 .pyg-gi { color: #00A000 } /* Generic.Inserted */
28-.pyg-go { color: #808080 } /* Generic.Output */
29+.pyg-go { color: #888888 } /* Generic.Output */
30 .pyg-gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
31 .pyg-gs { font-weight: bold } /* Generic.Strong */
32 .pyg-gu { color: #800080; font-weight: bold } /* Generic.Subheading */
33-.pyg-gt { color: #0040D0 } /* Generic.Traceback */
34-.pyg-kc { color: #008000; font-weight: bold } /* Keyword.Constant */
35-.pyg-kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
36-.pyg-kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */
37-.pyg-kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
38-.pyg-kt { color: #303090; font-weight: bold } /* Keyword.Type */
39-.pyg-m { color: #6000E0; font-weight: bold } /* Literal.Number */
40+.pyg-gt { color: #0044DD } /* Generic.Traceback */
41+.pyg-kc { color: #008800; font-weight: bold } /* Keyword.Constant */
42+.pyg-kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
43+.pyg-kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
44+.pyg-kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
45+.pyg-kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
46+.pyg-kt { color: #333399; font-weight: bold } /* Keyword.Type */
47+.pyg-m { color: #6600EE; font-weight: bold } /* Literal.Number */
48 .pyg-s { background-color: #fff0f0 } /* Literal.String */
49-.pyg-na { color: #0000C0 } /* Name.Attribute */
50+.pyg-na { color: #0000CC } /* Name.Attribute */
51 .pyg-nb { color: #007020 } /* Name.Builtin */
52-.pyg-nc { color: #B00060; font-weight: bold } /* Name.Class */
53-.pyg-no { color: #003060; font-weight: bold } /* Name.Constant */
54-.pyg-nd { color: #505050; font-weight: bold } /* Name.Decorator */
55-.pyg-ni { color: #800000; font-weight: bold } /* Name.Entity */
56-.pyg-ne { color: #F00000; font-weight: bold } /* Name.Exception */
57-.pyg-nf { color: #0060B0; font-weight: bold } /* Name.Function */
58-.pyg-nl { color: #907000; font-weight: bold } /* Name.Label */
59+.pyg-nc { color: #BB0066; font-weight: bold } /* Name.Class */
60+.pyg-no { color: #003366; font-weight: bold } /* Name.Constant */
61+.pyg-nd { color: #555555; font-weight: bold } /* Name.Decorator */
62+.pyg-ni { color: #880000; font-weight: bold } /* Name.Entity */
63+.pyg-ne { color: #FF0000; font-weight: bold } /* Name.Exception */
64+.pyg-nf { color: #0066BB; font-weight: bold } /* Name.Function */
65+.pyg-nl { color: #997700; font-weight: bold } /* Name.Label */
66 .pyg-nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
67-.pyg-nt { color: #007000 } /* Name.Tag */
68-.pyg-nv { color: #906030 } /* Name.Variable */
69+.pyg-nt { color: #007700 } /* Name.Tag */
70+.pyg-nv { color: #996633 } /* Name.Variable */
71 .pyg-ow { color: #000000; font-weight: bold } /* Operator.Word */
72 .pyg-w { color: #bbbbbb } /* Text.Whitespace */
73-.pyg-mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */
74-.pyg-mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */
75-.pyg-mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */
76-.pyg-mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */
77+.pyg-mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
78+.pyg-mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
79+.pyg-mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
80+.pyg-mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
81+.pyg-mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
82+.pyg-sa { background-color: #fff0f0 } /* Literal.String.Affix */
83 .pyg-sb { background-color: #fff0f0 } /* Literal.String.Backtick */
84-.pyg-sc { color: #0040D0 } /* Literal.String.Char */
85-.pyg-sd { color: #D04020 } /* Literal.String.Doc */
86+.pyg-sc { color: #0044DD } /* Literal.String.Char */
87+.pyg-dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
88+.pyg-sd { color: #DD4422 } /* Literal.String.Doc */
89 .pyg-s2 { background-color: #fff0f0 } /* Literal.String.Double */
90-.pyg-se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
91+.pyg-se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
92 .pyg-sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
93-.pyg-si { background-color: #e0e0e0 } /* Literal.String.Interpol */
94-.pyg-sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */
95+.pyg-si { background-color: #eeeeee } /* Literal.String.Interpol */
96+.pyg-sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
97 .pyg-sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
98 .pyg-s1 { background-color: #fff0f0 } /* Literal.String.Single */
99-.pyg-ss { color: #A06000 } /* Literal.String.Symbol */
100+.pyg-ss { color: #AA6600 } /* Literal.String.Symbol */
101 .pyg-bp { color: #007020 } /* Name.Builtin.Pseudo */
102-.pyg-vc { color: #306090 } /* Name.Variable.Class */
103-.pyg-vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */
104-.pyg-vi { color: #3030B0 } /* Name.Variable.Instance */
105-.pyg-il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */
106+.pyg-fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
107+.pyg-vc { color: #336699 } /* Name.Variable.Class */
108+.pyg-vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
109+.pyg-vi { color: #3333BB } /* Name.Variable.Instance */
110+.pyg-vm { color: #996633 } /* Name.Variable.Magic */
111+.pyg-il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */

Subscribers

People subscribed via source and target branches