Back to index

moin  1.9.0~rc2
colorful.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.colorful
00004     ~~~~~~~~~~~~~~~~~~~~~~~~
00005 
00006     A colorful style, inspired by CodeRay.
00007 
00008     :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS.
00009     :license: BSD, see LICENSE for details.
00010 """
00011 
00012 from pygments.style import Style
00013 from pygments.token import Keyword, Name, Comment, String, Error, \
00014      Number, Operator, Generic, Whitespace
00015 
00016 
00017 class ColorfulStyle(Style):
00018     """
00019     A colorful style, inspired by CodeRay.
00020     """
00021 
00022     default_style = ""
00023 
00024     styles = {
00025         Whitespace:                "#bbbbbb",
00026 
00027         Comment:                   "#888",
00028         Comment.Preproc:           "#579",
00029         Comment.Special:           "bold #cc0000",
00030 
00031         Keyword:                   "bold #080",
00032         Keyword.Pseudo:            "#038",
00033         Keyword.Type:              "#339",
00034 
00035         Operator:                  "#333",
00036         Operator.Word:             "bold #000",
00037 
00038         Name.Builtin:              "#007020",
00039         Name.Function:             "bold #06B",
00040         Name.Class:                "bold #B06",
00041         Name.Namespace:            "bold #0e84b5",
00042         Name.Exception:            "bold #F00",
00043         Name.Variable:             "#963",
00044         Name.Variable.Instance:    "#33B",
00045         Name.Variable.Class:       "#369",
00046         Name.Variable.Global:      "bold #d70",
00047         Name.Constant:             "bold #036",
00048         Name.Label:                "bold #970",
00049         Name.Entity:               "bold #800",
00050         Name.Attribute:            "#00C",
00051         Name.Tag:                  "#070",
00052         Name.Decorator:            "bold #555",
00053 
00054         String:                    "bg:#fff0f0",
00055         String.Char:               "#04D bg:",
00056         String.Doc:                "#D42 bg:",
00057         String.Interpol:           "bg:#eee",
00058         String.Escape:             "bold #666",
00059         String.Regex:              "bg:#fff0ff #000",
00060         String.Symbol:             "#A60 bg:",
00061         String.Other:              "#D20",
00062 
00063         Number:                    "bold #60E",
00064         Number.Integer:            "bold #00D",
00065         Number.Float:              "bold #60E",
00066         Number.Hex:                "bold #058",
00067         Number.Oct:                "bold #40E",
00068 
00069         Generic.Heading:           "bold #000080",
00070         Generic.Subheading:        "bold #800080",
00071         Generic.Deleted:           "#A00000",
00072         Generic.Inserted:          "#00A000",
00073         Generic.Error:             "#FF0000",
00074         Generic.Emph:              "italic",
00075         Generic.Strong:            "bold",
00076         Generic.Prompt:            "bold #c65d09",
00077         Generic.Output:            "#888",
00078         Generic.Traceback:         "#04D",
00079 
00080         Error:                     "#F00 bg:#FAA"
00081     }