|
1 # -*- coding: utf-8 -*- |
|
2 """ |
|
3 pygments.styles.paraiso_light |
|
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
5 |
|
6 ParaĆso (Light) by Jan T. Sott |
|
7 |
|
8 Pygments template by Jan T. Sott (https://github.com/idleberg) |
|
9 Created with Base16 Builder by Chris Kempson |
|
10 (https://github.com/chriskempson/base16-builder). |
|
11 |
|
12 :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. |
|
13 :license: BSD, see LICENSE for details. |
|
14 """ |
|
15 |
|
16 from pygments.style import Style |
|
17 from pygments.token import Keyword, Name, Comment, String, Error, Text, \ |
|
18 Number, Operator, Generic, Whitespace, Punctuation, Other, Literal |
|
19 |
|
20 |
|
21 BACKGROUND = "#e7e9db" |
|
22 CURRENT_LINE = "#b9b6b0" |
|
23 SELECTION = "#a39e9b" |
|
24 FOREGROUND = "#2f1e2e" |
|
25 COMMENT = "#8d8687" |
|
26 RED = "#ef6155" |
|
27 ORANGE = "#f99b15" |
|
28 YELLOW = "#fec418" |
|
29 GREEN = "#48b685" |
|
30 AQUA = "#5bc4bf" |
|
31 BLUE = "#06b6ef" |
|
32 PURPLE = "#815ba4" |
|
33 |
|
34 |
|
35 class ParaisoLightStyle(Style): |
|
36 |
|
37 default_style = '' |
|
38 |
|
39 background_color = BACKGROUND |
|
40 highlight_color = SELECTION |
|
41 |
|
42 background_color = BACKGROUND |
|
43 highlight_color = SELECTION |
|
44 |
|
45 styles = { |
|
46 # No corresponding class for the following: |
|
47 Text: FOREGROUND, # class: '' |
|
48 Whitespace: "", # class: 'w' |
|
49 Error: RED, # class: 'err' |
|
50 Other: "", # class 'x' |
|
51 |
|
52 Comment: COMMENT, # class: 'c' |
|
53 Comment.Multiline: "", # class: 'cm' |
|
54 Comment.Preproc: "", # class: 'cp' |
|
55 Comment.Single: "", # class: 'c1' |
|
56 Comment.Special: "", # class: 'cs' |
|
57 |
|
58 Keyword: PURPLE, # class: 'k' |
|
59 Keyword.Constant: "", # class: 'kc' |
|
60 Keyword.Declaration: "", # class: 'kd' |
|
61 Keyword.Namespace: AQUA, # class: 'kn' |
|
62 Keyword.Pseudo: "", # class: 'kp' |
|
63 Keyword.Reserved: "", # class: 'kr' |
|
64 Keyword.Type: YELLOW, # class: 'kt' |
|
65 |
|
66 Operator: AQUA, # class: 'o' |
|
67 Operator.Word: "", # class: 'ow' - like keywords |
|
68 |
|
69 Punctuation: FOREGROUND, # class: 'p' |
|
70 |
|
71 Name: FOREGROUND, # class: 'n' |
|
72 Name.Attribute: BLUE, # class: 'na' - to be revised |
|
73 Name.Builtin: "", # class: 'nb' |
|
74 Name.Builtin.Pseudo: "", # class: 'bp' |
|
75 Name.Class: YELLOW, # class: 'nc' - to be revised |
|
76 Name.Constant: RED, # class: 'no' - to be revised |
|
77 Name.Decorator: AQUA, # class: 'nd' - to be revised |
|
78 Name.Entity: "", # class: 'ni' |
|
79 Name.Exception: RED, # class: 'ne' |
|
80 Name.Function: BLUE, # class: 'nf' |
|
81 Name.Property: "", # class: 'py' |
|
82 Name.Label: "", # class: 'nl' |
|
83 Name.Namespace: YELLOW, # class: 'nn' - to be revised |
|
84 Name.Other: BLUE, # class: 'nx' |
|
85 Name.Tag: AQUA, # class: 'nt' - like a keyword |
|
86 Name.Variable: RED, # class: 'nv' - to be revised |
|
87 Name.Variable.Class: "", # class: 'vc' - to be revised |
|
88 Name.Variable.Global: "", # class: 'vg' - to be revised |
|
89 Name.Variable.Instance: "", # class: 'vi' - to be revised |
|
90 |
|
91 Number: ORANGE, # class: 'm' |
|
92 Number.Float: "", # class: 'mf' |
|
93 Number.Hex: "", # class: 'mh' |
|
94 Number.Integer: "", # class: 'mi' |
|
95 Number.Integer.Long: "", # class: 'il' |
|
96 Number.Oct: "", # class: 'mo' |
|
97 |
|
98 Literal: ORANGE, # class: 'l' |
|
99 Literal.Date: GREEN, # class: 'ld' |
|
100 |
|
101 String: GREEN, # class: 's' |
|
102 String.Backtick: "", # class: 'sb' |
|
103 String.Char: FOREGROUND, # class: 'sc' |
|
104 String.Doc: COMMENT, # class: 'sd' - like a comment |
|
105 String.Double: "", # class: 's2' |
|
106 String.Escape: ORANGE, # class: 'se' |
|
107 String.Heredoc: "", # class: 'sh' |
|
108 String.Interpol: ORANGE, # class: 'si' |
|
109 String.Other: "", # class: 'sx' |
|
110 String.Regex: "", # class: 'sr' |
|
111 String.Single: "", # class: 's1' |
|
112 String.Symbol: "", # class: 'ss' |
|
113 |
|
114 Generic: "", # class: 'g' |
|
115 Generic.Deleted: RED, # class: 'gd', |
|
116 Generic.Emph: "italic", # class: 'ge' |
|
117 Generic.Error: "", # class: 'gr' |
|
118 Generic.Heading: "bold " + FOREGROUND, # class: 'gh' |
|
119 Generic.Inserted: GREEN, # class: 'gi' |
|
120 Generic.Output: "", # class: 'go' |
|
121 Generic.Prompt: "bold " + COMMENT, # class: 'gp' |
|
122 Generic.Strong: "bold", # class: 'gs' |
|
123 Generic.Subheading: "bold " + AQUA, # class: 'gu' |
|
124 Generic.Traceback: "", # class: 'gt' |
|
125 } |