|
1 # -*- coding: utf-8 -*- |
|
2 """ |
|
3 pygments.styles.bw |
|
4 ~~~~~~~~~~~~~~~~~~ |
|
5 |
|
6 Simple black/white only style. |
|
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 Operator, Generic |
|
15 |
|
16 |
|
17 class BlackWhiteStyle(Style): |
|
18 |
|
19 background_color = "#ffffff" |
|
20 default_style = "" |
|
21 |
|
22 styles = { |
|
23 Comment: "italic", |
|
24 Comment.Preproc: "noitalic", |
|
25 |
|
26 Keyword: "bold", |
|
27 Keyword.Pseudo: "nobold", |
|
28 Keyword.Type: "nobold", |
|
29 |
|
30 Operator.Word: "bold", |
|
31 |
|
32 Name.Class: "bold", |
|
33 Name.Namespace: "bold", |
|
34 Name.Exception: "bold", |
|
35 Name.Entity: "bold", |
|
36 Name.Tag: "bold", |
|
37 |
|
38 String: "italic", |
|
39 String.Interpol: "bold", |
|
40 String.Escape: "bold", |
|
41 |
|
42 Generic.Heading: "bold", |
|
43 Generic.Subheading: "bold", |
|
44 Generic.Emph: "italic", |
|
45 Generic.Strong: "bold", |
|
46 Generic.Prompt: "bold", |
|
47 |
|
48 Error: "border:#FF0000" |
|
49 } |