Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 76 lines (59 sloc) 2.493 kb
630d751 Blaise Laflamme Initial import
blaflamme authored
1 # -*- coding: utf-8 -*-
2 from pygments.style import Style
3 from pygments.token import Keyword, Name, Comment, String, Error, \
4 Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
5
6
7 class PylonsStyle(Style):
8 """
5b461b8 Blaise Laflamme Updated Pylons pygment styles
blaflamme authored
9 Pylons pygments style based on friendly style
630d751 Blaise Laflamme Initial import
blaflamme authored
10 """
11
12 # work in progress...
13
14 background_color = "#f8f8f8"
15 default_style = ""
16
17 styles = {
5b461b8 Blaise Laflamme Updated Pylons pygment styles
blaflamme authored
18 Whitespace: "#bbbbbb",
19 Comment: "italic #60a0b0",
20 Comment.Preproc: "noitalic #007020",
21 Comment.Special: "noitalic bg:#fff0f0",
630d751 Blaise Laflamme Initial import
blaflamme authored
22
5b461b8 Blaise Laflamme Updated Pylons pygment styles
blaflamme authored
23 Keyword: "bold #007020",
24 Keyword.Pseudo: "nobold",
25 Keyword.Type: "nobold #902000",
630d751 Blaise Laflamme Initial import
blaflamme authored
26
5b461b8 Blaise Laflamme Updated Pylons pygment styles
blaflamme authored
27 Operator: "#666666",
28 Operator.Word: "bold #007020",
630d751 Blaise Laflamme Initial import
blaflamme authored
29
5b461b8 Blaise Laflamme Updated Pylons pygment styles
blaflamme authored
30 Name.Builtin: "#007020",
31 Name.Function: "#06287e",
32 Name.Class: "bold #0e84b5",
33 Name.Namespace: "bold #0e84b5",
34 Name.Exception: "#007020",
35 Name.Variable: "#bb60d5",
36 Name.Constant: "#60add5",
37 Name.Label: "bold #002070",
38 Name.Entity: "bold #d55537",
39 Name.Attribute: "#0e84b5",
40 Name.Tag: "bold #062873",
41 Name.Decorator: "bold #555555",
630d751 Blaise Laflamme Initial import
blaflamme authored
42
5b461b8 Blaise Laflamme Updated Pylons pygment styles
blaflamme authored
43 String: "#4070a0",
44 String.Doc: "italic",
45 String.Interpol: "italic #70a0d0",
46 String.Escape: "bold #4070a0",
47 String.Regex: "#235388",
48 String.Symbol: "#517918",
49 String.Other: "#c65d09",
50 Number: "#40a070",
630d751 Blaise Laflamme Initial import
blaflamme authored
51
5b461b8 Blaise Laflamme Updated Pylons pygment styles
blaflamme authored
52 Generic.Heading: "bold #000080",
53 Generic.Subheading: "bold #800080",
54 Generic.Deleted: "#A00000",
55 Generic.Inserted: "#00A000",
56 Generic.Error: "#FF0000",
57 Generic.Emph: "italic",
58 Generic.Strong: "bold",
59 Generic.Prompt: "bold #c65d09",
60 Generic.Output: "#888",
61 Generic.Traceback: "#04D",
630d751 Blaise Laflamme Initial import
blaflamme authored
62
5b461b8 Blaise Laflamme Updated Pylons pygment styles
blaflamme authored
63 Error: "#a40000 bg:#fbe3e4"
630d751 Blaise Laflamme Initial import
blaflamme authored
64 }
57a11bb Blaise Laflamme Added a modified BW style for pdf rendering
blaflamme authored
65
66
67 class PylonsBWStyle(Style):
68
69 background_color = "#ffffff"
70 default_style = "bw"
71
72 styles = {
73 Error: ""
74 }
75
Something went wrong with that request. Please try again.