|
1 # -*- coding: utf-8 -*- |
|
2 """ |
|
3 pygments.styles.murphy |
|
4 ~~~~~~~~~~~~~~~~~~~~~~ |
|
5 |
|
6 Murphy's style from CodeRay. |
|
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 MurphyStyle(Style): |
|
18 """ |
|
19 Murphy's style from CodeRay. |
|
20 """ |
|
21 |
|
22 default_style = "" |
|
23 |
|
24 styles = { |
|
25 Whitespace: "#bbbbbb", |
|
26 Comment: "#666 italic", |
|
27 Comment.Preproc: "#579 noitalic", |
|
28 Comment.Special: "#c00 bold", |
|
29 |
|
30 Keyword: "bold #289", |
|
31 Keyword.Pseudo: "#08f", |
|
32 Keyword.Type: "#66f", |
|
33 |
|
34 Operator: "#333", |
|
35 Operator.Word: "bold #000", |
|
36 |
|
37 Name.Builtin: "#072", |
|
38 Name.Function: "bold #5ed", |
|
39 Name.Class: "bold #e9e", |
|
40 Name.Namespace: "bold #0e84b5", |
|
41 Name.Exception: "bold #F00", |
|
42 Name.Variable: "#036", |
|
43 Name.Variable.Instance: "#aaf", |
|
44 Name.Variable.Class: "#ccf", |
|
45 Name.Variable.Global: "#f84", |
|
46 Name.Constant: "bold #5ed", |
|
47 Name.Label: "bold #970", |
|
48 Name.Entity: "#800", |
|
49 Name.Attribute: "#007", |
|
50 Name.Tag: "#070", |
|
51 Name.Decorator: "bold #555", |
|
52 |
|
53 String: "bg:#e0e0ff", |
|
54 String.Char: "#88F bg:", |
|
55 String.Doc: "#D42 bg:", |
|
56 String.Interpol: "bg:#eee", |
|
57 String.Escape: "bold #666", |
|
58 String.Regex: "bg:#e0e0ff #000", |
|
59 String.Symbol: "#fc8 bg:", |
|
60 String.Other: "#f88", |
|
61 |
|
62 Number: "bold #60E", |
|
63 Number.Integer: "bold #66f", |
|
64 Number.Float: "bold #60E", |
|
65 Number.Hex: "bold #058", |
|
66 Number.Oct: "bold #40E", |
|
67 |
|
68 Generic.Heading: "bold #000080", |
|
69 Generic.Subheading: "bold #800080", |
|
70 Generic.Deleted: "#A00000", |
|
71 Generic.Inserted: "#00A000", |
|
72 Generic.Error: "#FF0000", |
|
73 Generic.Emph: "italic", |
|
74 Generic.Strong: "bold", |
|
75 Generic.Prompt: "bold #c65d09", |
|
76 Generic.Output: "#888", |
|
77 Generic.Traceback: "#04D", |
|
78 |
|
79 Error: "#F00 bg:#FAA" |
|
80 } |