~wiqd/metis/trunk

« back to all changes in this revision

Viewing changes to lib/pygments/styles/colorful.py

  • Committer: Greg Armer
  • Date: 2009-10-16 10:21:49 UTC
  • Revision ID: greg@codemine.local-20091016102149-pn1icq687uf4xiip
Added library directory and the pygments library for syntax highlighting

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
"""
 
3
    pygments.styles.colorful
 
4
    ~~~~~~~~~~~~~~~~~~~~~~~~
 
5
 
 
6
    A colorful style, inspired by 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 ColorfulStyle(Style):
 
18
    """
 
19
    A colorful style, inspired by CodeRay.
 
20
    """
 
21
 
 
22
    default_style = ""
 
23
 
 
24
    styles = {
 
25
        Whitespace:                "#bbbbbb",
 
26
 
 
27
        Comment:                   "#888",
 
28
        Comment.Preproc:           "#579",
 
29
        Comment.Special:           "bold #cc0000",
 
30
 
 
31
        Keyword:                   "bold #080",
 
32
        Keyword.Pseudo:            "#038",
 
33
        Keyword.Type:              "#339",
 
34
 
 
35
        Operator:                  "#333",
 
36
        Operator.Word:             "bold #000",
 
37
 
 
38
        Name.Builtin:              "#007020",
 
39
        Name.Function:             "bold #06B",
 
40
        Name.Class:                "bold #B06",
 
41
        Name.Namespace:            "bold #0e84b5",
 
42
        Name.Exception:            "bold #F00",
 
43
        Name.Variable:             "#963",
 
44
        Name.Variable.Instance:    "#33B",
 
45
        Name.Variable.Class:       "#369",
 
46
        Name.Variable.Global:      "bold #d70",
 
47
        Name.Constant:             "bold #036",
 
48
        Name.Label:                "bold #970",
 
49
        Name.Entity:               "bold #800",
 
50
        Name.Attribute:            "#00C",
 
51
        Name.Tag:                  "#070",
 
52
        Name.Decorator:            "bold #555",
 
53
 
 
54
        String:                    "bg:#fff0f0",
 
55
        String.Char:               "#04D bg:",
 
56
        String.Doc:                "#D42 bg:",
 
57
        String.Interpol:           "bg:#eee",
 
58
        String.Escape:             "bold #666",
 
59
        String.Regex:              "bg:#fff0ff #000",
 
60
        String.Symbol:             "#A60 bg:",
 
61
        String.Other:              "#D20",
 
62
 
 
63
        Number:                    "bold #60E",
 
64
        Number.Integer:            "bold #00D",
 
65
        Number.Float:              "bold #60E",
 
66
        Number.Hex:                "bold #058",
 
67
        Number.Oct:                "bold #40E",
 
68
 
 
69
        Generic.Heading:           "bold #000080",
 
70
        Generic.Subheading:        "bold #800080",
 
71
        Generic.Deleted:           "#A00000",
 
72
        Generic.Inserted:          "#00A000",
 
73
        Generic.Error:             "#FF0000",
 
74
        Generic.Emph:              "italic",
 
75
        Generic.Strong:            "bold",
 
76
        Generic.Prompt:            "bold #c65d09",
 
77
        Generic.Output:            "#888",
 
78
        Generic.Traceback:         "#04D",
 
79
 
 
80
        Error:                     "#F00 bg:#FAA"
 
81
    }