-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathpine_style.py
28 lines (20 loc) · 1011 Bytes
/
pine_style.py
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
from pygments.style import Style
from pygments.token import Keyword, Name, Comment, String, Error, \
Number, Literal, Operator, Generic, Whitespace
# Many examples are here https://bitbucket.org/birkenfeld/pygments-main/src/default/pygments/styles/default.py
class PineStyle(Style):
background_color = "#f8f8f8"
default_style = ""
styles = {
Whitespace: "#bbbbbb",
Comment: "italic #408080",
Keyword: "bold #008000",
Operator: "#666666",
Literal: "#ff00ff", # Color literal
Name: "#101010",
Name.Constant: "bold #800000", # Built-in series 'open', 'high', ...
Name.Entity: "bold #008000", # Annotation function
String: "#BA2121",
Number: "#6666FF",
Error: "border:#FF0000"
}