~ubuntu-branches/ubuntu/oneiric/moin/oneiric-security

« back to all changes in this revision

Viewing changes to MoinMoin/support/pygments/styles/autumn.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-03-30 12:55:34 UTC
  • mfrom: (0.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100330125534-4c2ufc1rok24447l
Tags: 1.9.2-2ubuntu1
* Merge from Debian testing (LP: #521834). Based on work by Stefan Ebner.
  Remaining changes:
 - Remove python-xml from Suggests field, the package isn't anymore in
   sys.path.
 - Demote fckeditor from Recommends to Suggests; the code was previously
   embedded in moin, but it was also disabled, so there's no reason for us
   to pull this in by default currently. Note: This isn't necessary anymore
   but needs a MIR for fckeditor, so postpone dropping this change until
   lucid+1
* debian/rules:
  - Replace hardcoded python2.5 with python* and hardcore python2.6 for ln
* debian/control.in: drop versioned depends on cdbs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
"""
 
3
    pygments.styles.autumn
 
4
    ~~~~~~~~~~~~~~~~~~~~~~
 
5
 
 
6
    A colorful style, inspired by the terminal 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 AutumnStyle(Style):
 
18
    """
 
19
    A colorful style, inspired by the terminal highlighting style.
 
20
    """
 
21
 
 
22
    default_style = ""
 
23
 
 
24
    styles = {
 
25
        Whitespace:                 '#bbbbbb',
 
26
 
 
27
        Comment:                    'italic #aaaaaa',
 
28
        Comment.Preproc:            'noitalic #4c8317',
 
29
        Comment.Special:            'italic #0000aa',
 
30
 
 
31
        Keyword:                    '#0000aa',
 
32
        Keyword.Type:               '#00aaaa',
 
33
 
 
34
        Operator.Word:              '#0000aa',
 
35
 
 
36
        Name.Builtin:               '#00aaaa',
 
37
        Name.Function:              '#00aa00',
 
38
        Name.Class:                 'underline #00aa00',
 
39
        Name.Namespace:             'underline #00aaaa',
 
40
        Name.Variable:              '#aa0000',
 
41
        Name.Constant:              '#aa0000',
 
42
        Name.Entity:                'bold #800',
 
43
        Name.Attribute:             '#1e90ff',
 
44
        Name.Tag:                   'bold #1e90ff',
 
45
        Name.Decorator:             '#888888',
 
46
 
 
47
        String:                     '#aa5500',
 
48
        String.Symbol:              '#0000aa',
 
49
        String.Regex:               '#009999',
 
50
 
 
51
        Number:                     '#009999',
 
52
 
 
53
        Generic.Heading:            'bold #000080',
 
54
        Generic.Subheading:         'bold #800080',
 
55
        Generic.Deleted:            '#aa0000',
 
56
        Generic.Inserted:           '#00aa00',
 
57
        Generic.Error:              '#aa0000',
 
58
        Generic.Emph:               'italic',
 
59
        Generic.Strong:             'bold',
 
60
        Generic.Prompt:             '#555555',
 
61
        Generic.Output:             '#888888',
 
62
        Generic.Traceback:          '#aa0000',
 
63
 
 
64
        Error:                      '#F00 bg:#FAA'
 
65
    }