-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgraphite.py
More file actions
32 lines (25 loc) · 1.03 KB
/
graphite.py
File metadata and controls
32 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from pygments.style import Style
from pygments.token import Keyword, Name, Literal, Number, String, Operator, \
Comment, Punctuation
class GraphiteStyle(Style):
background_color = "transparent";
default_style = ""
styles = {
Keyword: 'bold #eeeeee',
Keyword.Constant: 'bold #88ccee',
Keyword.Namespace: 'bold #ee8888',
Keyword.Pseudo: 'bold #88ccee',
Name: '#88ccee',
Name.Builtin: 'bold #88eeee',
Name.Class: 'bold #88ccee',
Name.Function: 'bold #88ccee',
Name.Decorator: '#eeccee',
Literal: '#eeeecc',
Number: '#eeeecc',
String: '#88cc88',
String.Escape: 'bold #88cc88',
Operator: '#eeeeee',
Operator.Word: 'bold #eeeeee',
Punctuation: '#eeeeee',
Comment: '#cccccc',
}