~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
"""
3
 
    pygments.styles.perldoc
4
 
    ~~~~~~~~~~~~~~~~~~~~~~~
5
 
 
6
 
    Style similar to the style used in the `perldoc`_ code blocks.
7
 
 
8
 
    .. _perldoc: http://perldoc.perl.org/
9
 
 
10
 
    :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.
11
 
    :license: BSD, see LICENSE for details.
12
 
"""
13
 
 
14
 
from pygments.style import Style
15
 
from pygments.token import Keyword, Name, Comment, String, Error, \
16
 
     Number, Operator, Generic, Whitespace
17
 
 
18
 
 
19
 
class PerldocStyle(Style):
20
 
    """
21
 
    Style similar to the style used in the perldoc code blocks.
22
 
    """
23
 
 
24
 
    background_color = '#eeeedd'
25
 
    default_style = ''
26
 
 
27
 
    styles = {
28
 
        Whitespace:             '#bbbbbb',
29
 
        Comment:                '#228B22',
30
 
        Comment.Preproc:        '#1e889b',
31
 
        Comment.Special:        '#8B008B bold',
32
 
 
33
 
        String:                 '#CD5555',
34
 
        String.Heredoc:         '#1c7e71 italic',
35
 
        String.Regex:           '#B452CD',
36
 
        String.Other:           '#cb6c20',
37
 
        String.Regex:           '#1c7e71',
38
 
 
39
 
        Number:                 '#B452CD',
40
 
 
41
 
        Operator.Word:          '#8B008B',
42
 
 
43
 
        Keyword:                '#8B008B bold',
44
 
        Keyword.Type:           '#a7a7a7',
45
 
 
46
 
        Name.Class:             '#008b45 bold',
47
 
        Name.Exception:         '#008b45 bold',
48
 
        Name.Function:          '#008b45',
49
 
        Name.Namespace:         '#008b45 underline',
50
 
        Name.Variable:          '#00688B',
51
 
        Name.Constant:          '#00688B',
52
 
        Name.Decorator:         '#707a7c',
53
 
        Name.Tag:               '#8B008B bold',
54
 
        Name.Attribute:         '#658b00',
55
 
        Name.Builtin:           '#658b00',
56
 
 
57
 
        Generic.Heading:        'bold #000080',
58
 
        Generic.Subheading:     'bold #800080',
59
 
        Generic.Deleted:        '#aa0000',
60
 
        Generic.Inserted:       '#00aa00',
61
 
        Generic.Error:          '#aa0000',
62
 
        Generic.Emph:           'italic',
63
 
        Generic.Strong:         'bold',
64
 
        Generic.Prompt:         '#555555',
65
 
        Generic.Output:         '#888888',
66
 
        Generic.Traceback:      '#aa0000',
67
 
 
68
 
        Error:                  'bg:#e3d2d2 #a61717'
69
 
    }