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

« back to all changes in this revision

Viewing changes to MoinMoin/support/pygments/styles/friendly.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.friendly
4
 
    ~~~~~~~~~~~~~~~~~~~~~~~~
5
 
 
6
 
    A modern style based on the VIM pyte theme.
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 FriendlyStyle(Style):
18
 
    """
19
 
    A modern style based on the VIM pyte theme.
20
 
    """
21
 
 
22
 
    background_color = "#f0f0f0"
23
 
    default_style = ""
24
 
 
25
 
    styles = {
26
 
        Whitespace:                "#bbbbbb",
27
 
        Comment:                   "italic #60a0b0",
28
 
        Comment.Preproc:           "noitalic #007020",
29
 
        Comment.Special:           "noitalic bg:#fff0f0",
30
 
 
31
 
        Keyword:                   "bold #007020",
32
 
        Keyword.Pseudo:            "nobold",
33
 
        Keyword.Type:              "nobold #902000",
34
 
 
35
 
        Operator:                  "#666666",
36
 
        Operator.Word:             "bold #007020",
37
 
 
38
 
        Name.Builtin:              "#007020",
39
 
        Name.Function:             "#06287e",
40
 
        Name.Class:                "bold #0e84b5",
41
 
        Name.Namespace:            "bold #0e84b5",
42
 
        Name.Exception:            "#007020",
43
 
        Name.Variable:             "#bb60d5",
44
 
        Name.Constant:             "#60add5",
45
 
        Name.Label:                "bold #002070",
46
 
        Name.Entity:               "bold #d55537",
47
 
        Name.Attribute:            "#4070a0",
48
 
        Name.Tag:                  "bold #062873",
49
 
        Name.Decorator:            "bold #555555",
50
 
 
51
 
        String:                    "#4070a0",
52
 
        String.Doc:                "italic",
53
 
        String.Interpol:           "italic #70a0d0",
54
 
        String.Escape:             "bold #4070a0",
55
 
        String.Regex:              "#235388",
56
 
        String.Symbol:             "#517918",
57
 
        String.Other:              "#c65d09",
58
 
        Number:                    "#40a070",
59
 
 
60
 
        Generic.Heading:           "bold #000080",
61
 
        Generic.Subheading:        "bold #800080",
62
 
        Generic.Deleted:           "#A00000",
63
 
        Generic.Inserted:          "#00A000",
64
 
        Generic.Error:             "#FF0000",
65
 
        Generic.Emph:              "italic",
66
 
        Generic.Strong:            "bold",
67
 
        Generic.Prompt:            "bold #c65d09",
68
 
        Generic.Output:            "#888",
69
 
        Generic.Traceback:         "#04D",
70
 
 
71
 
        Error:                     "border:#FF0000"
72
 
    }