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

« back to all changes in this revision

Viewing changes to wxPython/wx/tools/Editra/src/extern/pygments/styles/trac.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.trac
 
4
    ~~~~~~~~~~~~~~~~~~~~
 
5
 
 
6
    Port of the default trac highlighter design.
 
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 TracStyle(Style):
 
18
    """
 
19
    Port of the default trac highlighter design.
 
20
    """
 
21
 
 
22
    default_style = ''
 
23
 
 
24
    styles = {
 
25
        Whitespace:             '#bbbbbb',
 
26
        Comment:                'italic #999988',
 
27
        Comment.Preproc:        'bold noitalic #999999',
 
28
        Comment.Special:        'bold #999999',
 
29
 
 
30
        Operator:               'bold',
 
31
 
 
32
        String:                 '#bb8844',
 
33
        String.Regex:           '#808000',
 
34
 
 
35
        Number:                 '#009999',
 
36
 
 
37
        Keyword:                'bold',
 
38
        Keyword.Type:           '#445588',
 
39
 
 
40
        Name.Builtin:           '#999999',
 
41
        Name.Function:          'bold #990000',
 
42
        Name.Class:             'bold #445588',
 
43
        Name.Exception:         'bold #990000',
 
44
        Name.Namespace:         '#555555',
 
45
        Name.Variable:          '#008080',
 
46
        Name.Constant:          '#008080',
 
47
        Name.Tag:               '#000080',
 
48
        Name.Attribute:         '#008080',
 
49
        Name.Entity:            '#800080',
 
50
 
 
51
        Generic.Heading:        '#999999',
 
52
        Generic.Subheading:     '#aaaaaa',
 
53
        Generic.Deleted:        'bg:#ffdddd #000000',
 
54
        Generic.Inserted:       'bg:#ddffdd #000000',
 
55
        Generic.Error:          '#aa0000',
 
56
        Generic.Emph:           'italic',
 
57
        Generic.Strong:         'bold',
 
58
        Generic.Prompt:         '#555555',
 
59
        Generic.Output:         '#888888',
 
60
        Generic.Traceback:      '#aa0000',
 
61
 
 
62
        Error:                  'bg:#e3d2d2 #a61717'
 
63
    }