|
1 # -*- coding: utf-8 -*- |
|
2 """ |
|
3 pygments.styles.borland |
|
4 ~~~~~~~~~~~~~~~~~~~~~~~ |
|
5 |
|
6 Style similar to the style used in the Borland IDEs. |
|
7 |
|
8 :copyright: Copyright 2006-2009 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 BorlandStyle(Style): |
|
18 """ |
|
19 Style similar to the style used in the borland IDEs. |
|
20 """ |
|
21 |
|
22 default_style = '' |
|
23 |
|
24 styles = { |
|
25 Whitespace: '#bbbbbb', |
|
26 |
|
27 Comment: 'italic #008800', |
|
28 Comment.Preproc: 'noitalic #008080', |
|
29 Comment.Special: 'noitalic bold', |
|
30 |
|
31 String: '#0000FF', |
|
32 String.Char: '#800080', |
|
33 Number: '#0000FF', |
|
34 Keyword: 'bold #000080', |
|
35 Operator.Word: 'bold', |
|
36 Name.Tag: 'bold #000080', |
|
37 Name.Attribute: '#FF0000', |
|
38 |
|
39 Generic.Heading: '#999999', |
|
40 Generic.Subheading: '#aaaaaa', |
|
41 Generic.Deleted: 'bg:#ffdddd #000000', |
|
42 Generic.Inserted: 'bg:#ddffdd #000000', |
|
43 Generic.Error: '#aa0000', |
|
44 Generic.Emph: 'italic', |
|
45 Generic.Strong: 'bold', |
|
46 Generic.Prompt: '#555555', |
|
47 Generic.Output: '#888888', |
|
48 Generic.Traceback: '#aa0000', |
|
49 |
|
50 Error: 'bg:#e3d2d2 #a61717' |
|
51 } |