ThirdParty/Pygments/pygments/styles/monokai.py

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

eric ide

mercurial