~ubuntu-branches/ubuntu/quantal/wxwidgets2.8/quantal

« back to all changes in this revision

Viewing changes to wxPython/wx/tools/Editra/src/extern/pygments/styles/default.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
"""
 
3
    pygments.styles.default
 
4
    ~~~~~~~~~~~~~~~~~~~~~~~
 
5
 
 
6
    The default highlighting style.
 
7
 
 
8
    :copyright: Copyright 2006-2010 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 DefaultStyle(Style):
 
18
    """
 
19
    The default style (inspired by Emacs 22).
 
20
    """
 
21
 
 
22
    background_color = "#f8f8f8"
 
23
    default_style = ""
 
24
 
 
25
    styles = {
 
26
        Whitespace:                "#bbbbbb",
 
27
        Comment:                   "italic #408080",
 
28
        Comment.Preproc:           "noitalic #BC7A00",
 
29
 
 
30
        #Keyword:                   "bold #AA22FF",
 
31
        Keyword:                   "bold #008000",
 
32
        Keyword.Pseudo:            "nobold",
 
33
        Keyword.Type:              "nobold #B00040",
 
34
 
 
35
        Operator:                  "#666666",
 
36
        Operator.Word:             "bold #AA22FF",
 
37
 
 
38
        Name.Builtin:              "#008000",
 
39
        Name.Function:             "#0000FF",
 
40
        Name.Class:                "bold #0000FF",
 
41
        Name.Namespace:            "bold #0000FF",
 
42
        Name.Exception:            "bold #D2413A",
 
43
        Name.Variable:             "#19177C",
 
44
        Name.Constant:             "#880000",
 
45
        Name.Label:                "#A0A000",
 
46
        Name.Entity:               "bold #999999",
 
47
        Name.Attribute:            "#7D9029",
 
48
        Name.Tag:                  "bold #008000",
 
49
        Name.Decorator:            "#AA22FF",
 
50
 
 
51
        String:                    "#BA2121",
 
52
        String.Doc:                "italic",
 
53
        String.Interpol:           "bold #BB6688",
 
54
        String.Escape:             "bold #BB6622",
 
55
        String.Regex:              "#BB6688",
 
56
        #String.Symbol:             "#B8860B",
 
57
        String.Symbol:             "#19177C",
 
58
        String.Other:              "#008000",
 
59
        Number:                    "#666666",
 
60
 
 
61
        Generic.Heading:           "bold #000080",
 
62
        Generic.Subheading:        "bold #800080",
 
63
        Generic.Deleted:           "#A00000",
 
64
        Generic.Inserted:          "#00A000",
 
65
        Generic.Error:             "#FF0000",
 
66
        Generic.Emph:              "italic",
 
67
        Generic.Strong:            "bold",
 
68
        Generic.Prompt:            "bold #000080",
 
69
        Generic.Output:            "#888",
 
70
        Generic.Traceback:         "#04D",
 
71
 
 
72
        Error:                     "border:#FF0000"
 
73
    }