Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pygments/styles/monokai.py: 100%
6 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:07 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:07 +0000
1"""
2 pygments.styles.monokai
3 ~~~~~~~~~~~~~~~~~~~~~~~
5 Mimic the Monokai color scheme. Based on tango.py.
7 http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/
9 :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
10 :license: BSD, see LICENSE for details.
11"""
13from pygments.style import Style
14from pygments.token import Keyword, Name, Comment, String, Error, Token, \
15 Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
17class MonokaiStyle(Style):
18 """
19 This style mimics the Monokai color scheme.
20 """
22 background_color = "#272822"
23 highlight_color = "#49483e"
25 styles = {
26 # No corresponding class for the following:
27 Token: "#f8f8f2", # class: ''
28 Whitespace: "", # class: 'w'
29 Error: "#960050 bg:#1e0010", # class: 'err'
30 Other: "", # class 'x'
32 Comment: "#75715e", # class: 'c'
33 Comment.Multiline: "", # class: 'cm'
34 Comment.Preproc: "", # class: 'cp'
35 Comment.Single: "", # class: 'c1'
36 Comment.Special: "", # class: 'cs'
38 Keyword: "#66d9ef", # class: 'k'
39 Keyword.Constant: "", # class: 'kc'
40 Keyword.Declaration: "", # class: 'kd'
41 Keyword.Namespace: "#f92672", # class: 'kn'
42 Keyword.Pseudo: "", # class: 'kp'
43 Keyword.Reserved: "", # class: 'kr'
44 Keyword.Type: "", # class: 'kt'
46 Operator: "#f92672", # class: 'o'
47 Operator.Word: "", # class: 'ow' - like keywords
49 Punctuation: "#f8f8f2", # class: 'p'
51 Name: "#f8f8f2", # class: 'n'
52 Name.Attribute: "#a6e22e", # class: 'na' - to be revised
53 Name.Builtin: "", # class: 'nb'
54 Name.Builtin.Pseudo: "", # class: 'bp'
55 Name.Class: "#a6e22e", # class: 'nc' - to be revised
56 Name.Constant: "#66d9ef", # class: 'no' - to be revised
57 Name.Decorator: "#a6e22e", # class: 'nd' - to be revised
58 Name.Entity: "", # class: 'ni'
59 Name.Exception: "#a6e22e", # class: 'ne'
60 Name.Function: "#a6e22e", # class: 'nf'
61 Name.Property: "", # class: 'py'
62 Name.Label: "", # class: 'nl'
63 Name.Namespace: "", # class: 'nn' - to be revised
64 Name.Other: "#a6e22e", # class: 'nx'
65 Name.Tag: "#f92672", # class: 'nt' - like a keyword
66 Name.Variable: "", # class: 'nv' - to be revised
67 Name.Variable.Class: "", # class: 'vc' - to be revised
68 Name.Variable.Global: "", # class: 'vg' - to be revised
69 Name.Variable.Instance: "", # class: 'vi' - to be revised
71 Number: "#ae81ff", # class: 'm'
72 Number.Float: "", # class: 'mf'
73 Number.Hex: "", # class: 'mh'
74 Number.Integer: "", # class: 'mi'
75 Number.Integer.Long: "", # class: 'il'
76 Number.Oct: "", # class: 'mo'
78 Literal: "#ae81ff", # class: 'l'
79 Literal.Date: "#e6db74", # class: 'ld'
81 String: "#e6db74", # class: 's'
82 String.Backtick: "", # class: 'sb'
83 String.Char: "", # class: 'sc'
84 String.Doc: "", # class: 'sd' - like a comment
85 String.Double: "", # class: 's2'
86 String.Escape: "#ae81ff", # class: 'se'
87 String.Heredoc: "", # class: 'sh'
88 String.Interpol: "", # class: 'si'
89 String.Other: "", # class: 'sx'
90 String.Regex: "", # class: 'sr'
91 String.Single: "", # class: 's1'
92 String.Symbol: "", # class: 'ss'
95 Generic: "", # class: 'g'
96 Generic.Deleted: "#f92672", # class: 'gd',
97 Generic.Emph: "italic", # class: 'ge'
98 Generic.Error: "", # class: 'gr'
99 Generic.Heading: "", # class: 'gh'
100 Generic.Inserted: "#a6e22e", # class: 'gi'
101 Generic.Output: "#66d9ef", # class: 'go'
102 Generic.Prompt: "bold #f92672", # class: 'gp'
103 Generic.Strong: "bold", # class: 'gs'
104 Generic.Subheading: "#75715e", # class: 'gu'
105 Generic.Traceback: "", # class: 'gt'
106 }