|
1 # -*- coding: utf-8 -*- |
|
2 """ |
|
3 pygments.styles.trac |
|
4 ~~~~~~~~~~~~~~~~~~~~ |
|
5 |
|
6 Port of the default trac highlighter design. |
|
7 |
|
8 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. |
|
9 :license: BSD, see LICENSE for details. |
|
10 """ |
|
11 |
|
12 from pygments.style import Style |
|
13 from pygments.token import Keyword, Name, Comment, String, Error, \ |
|
14 Number, Operator, Generic, Whitespace |
|
15 |
|
16 |
|
17 class TracStyle(Style): |
|
18 """ |
|
19 Port of the default trac highlighter design. |
|
20 """ |
|
21 |
|
22 default_style = '' |
|
23 |
|
24 styles = { |
|
25 Whitespace: '#bbbbbb', |
|
26 Comment: 'italic #999988', |
|
27 Comment.Preproc: 'bold noitalic #999999', |
|
28 Comment.Special: 'bold #999999', |
|
29 |
|
30 Operator: 'bold', |
|
31 |
|
32 String: '#bb8844', |
|
33 String.Regex: '#808000', |
|
34 |
|
35 Number: '#009999', |
|
36 |
|
37 Keyword: 'bold', |
|
38 Keyword.Type: '#445588', |
|
39 |
|
40 Name.Builtin: '#999999', |
|
41 Name.Function: 'bold #990000', |
|
42 Name.Class: 'bold #445588', |
|
43 Name.Exception: 'bold #990000', |
|
44 Name.Namespace: '#555555', |
|
45 Name.Variable: '#008080', |
|
46 Name.Constant: '#008080', |
|
47 Name.Tag: '#000080', |
|
48 Name.Attribute: '#008080', |
|
49 Name.Entity: '#800080', |
|
50 |
|
51 Generic.Heading: '#999999', |
|
52 Generic.Subheading: '#aaaaaa', |
|
53 Generic.Deleted: 'bg:#ffdddd #000000', |
|
54 Generic.Inserted: 'bg:#ddffdd #000000', |
|
55 Generic.Error: '#aa0000', |
|
56 Generic.Emph: 'italic', |
|
57 Generic.Strong: 'bold', |
|
58 Generic.Prompt: '#555555', |
|
59 Generic.Output: '#888888', |
|
60 Generic.Traceback: '#aa0000', |
|
61 |
|
62 Error: 'bg:#e3d2d2 #a61717' |
|
63 } |