Debian Codegraph @

docs/_themes/err/pygments_style.py

raw
1 from pygments.style import Style
2 from pygments.token import Keyword, Name, Comment, String, \
3 Number, Operator, Generic, Whitespace
4
5
6 class ErrStyle(Style):
7 """
8 A Pygments style based on the "friendly" theme
9 """
10
11 background_color = "#ffffcc"
12 default_style = ""
13
14 styles = {
15 Whitespace: "#3e4349",
16 Comment: "#3f6b5b",
17 # Comment.Preproc: "noitalic #007020",
18 # Comment.Special: "noitalic bg:#fff0f0",
19
20 Keyword: "bold #f06f00",
21 # Keyword.Pseudo: "nobold",
22 # Keyword.Type: "nobold #902000",
23
24 Operator: "#3e4349",
25 # Operator.Word: "bold #007020",
26
27 Name: "#3e4349",
28 Name.Builtin: "#007020",
29 Name.Function: "bold #3e4349",
30 Name.Class: "bold #3e4349",
31 # Name.Namespace: "bold #f07e2a",
32 # Name.Exception: "#007020",
33 Name.Variable: "underline #8a2be2",
34 Name.Constant: "underline #b91f49",
35 # Name.Label: "bold #002070",
36 Name.Entity: "bold #330000",
37 # Name.Attribute: "#4070a0",
38 Name.Tag: "bold #f06f00",
39 Name.Decorator: "bold italic #3e4349",
40
41 # String: "#3e4349",
42 String: "#9a5151",
43 # String.Doc: "italic #3f65b5",
44 String.Doc: "italic #3f6b5b",
45 # String.Doc: "italic #9a7851",
46 # String.Doc: "italic #9a5151",
47 # String.Interpol: "italic #70a0d0",
48 # String.Escape: "bold #4070a0",
49 # String.Regex: "#235388",
50 # String.Symbol: "#517918",
51 # String.Other: "#c65d09",
52 Number: "underline #9a5151",
53
54 Generic: "#3e4349",
55 Generic.Heading: "bold #1014ad",
56 Generic.Subheading: "bold #1014ad",
57 Generic.Deleted: "bg:#c8f2ea #2020ff",
58 Generic.Inserted: "#3e4349",
59 # Generic.Error: "#FF0000",
60 # Generic.Emph: "italic",
61 # Generic.Strong: "bold",
62 # Generic.Prompt: "bold #c65d09",
63 # Generic.Output: "#888",
64 # Generic.Traceback: "#04D",
65
66 # Error: "border:#FF0000"
67 }