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
|
# -*- coding: utf-8 -*-
from pygments.style import Style
from pygments.token import Name, Comment, String, Number, Operator, Whitespace
class CMakeTemplateStyle(Style):
"""
for more token names, see pygments/styles.default
"""
background_color = "#f8f8f8"
default_style = ""
styles = {
Whitespace: "#bbbbbb",
Comment: "italic #408080",
Operator: "bold #000000",
String: "#217A21",
Number: "#105030",
Name.Builtin: "#400080", # anything lowercase
Name.Function: "bold #1010A0", # function
Name.Variable: "#1080B0", # <..>
Name.Tag: "#19177C", # ${..}
Name.Constant: "#6020E0", # uppercase only
Name.Entity: "italic #70A020", # @..@
Name.Attribute: "#906060", # paths, URLs
Name.Label: "#A0A000", # anything left over
Name.Exception: "bold #FF0000", # for debugging only
}
|