Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Sphinx/colors.py
3150 views
1
# -*- coding: utf-8 -*-
2
3
from pygments.style import Style
4
from pygments.token import Name, Comment, String, Number, Operator, Whitespace
5
6
class CMakeTemplateStyle(Style):
7
"""
8
for more token names, see pygments/styles.default
9
"""
10
11
background_color = "#f8f8f8"
12
default_style = ""
13
14
styles = {
15
Whitespace: "#bbbbbb",
16
Comment: "italic #408080",
17
Operator: "#555555",
18
String: "#217A21",
19
Number: "#105030",
20
Name.Builtin: "#333333", # anything lowercase
21
Name.Function: "#007020", # function
22
Name.Variable: "#1080B0", # <..>
23
Name.Tag: "#bb60d5", # ${..}
24
Name.Constant: "#4070a0", # uppercase only
25
Name.Entity: "italic #70A020", # @..@
26
Name.Attribute: "#906060", # paths, URLs
27
Name.Label: "#A0A000", # anything left over
28
Name.Exception: "bold #FF0000", # for debugging only
29
}
30
31