Back to index

moin  1.9.0~rc2
murphy.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.murphy
00004     ~~~~~~~~~~~~~~~~~~~~~~
00005 
00006     Murphy's style from 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 MurphyStyle(Style):
00018     """
00019     Murphy's style from CodeRay.
00020     """
00021 
00022     default_style = ""
00023 
00024     styles = {
00025         Whitespace:                "#bbbbbb",
00026         Comment:                   "#666 italic",
00027         Comment.Preproc:           "#579 noitalic",
00028         Comment.Special:           "#c00 bold",
00029 
00030         Keyword:                   "bold #289",
00031         Keyword.Pseudo:            "#08f",
00032         Keyword.Type:              "#66f",
00033 
00034         Operator:                  "#333",
00035         Operator.Word:             "bold #000",
00036 
00037         Name.Builtin:              "#072",
00038         Name.Function:             "bold #5ed",
00039         Name.Class:                "bold #e9e",
00040         Name.Namespace:            "bold #0e84b5",
00041         Name.Exception:            "bold #F00",
00042         Name.Variable:             "#036",
00043         Name.Variable.Instance:    "#aaf",
00044         Name.Variable.Class:       "#ccf",
00045         Name.Variable.Global:      "#f84",
00046         Name.Constant:             "bold #5ed",
00047         Name.Label:                "bold #970",
00048         Name.Entity:               "#800",
00049         Name.Attribute:            "#007",
00050         Name.Tag:                  "#070",
00051         Name.Decorator:            "bold #555",
00052 
00053         String:                    "bg:#e0e0ff",
00054         String.Char:               "#88F bg:",
00055         String.Doc:                "#D42 bg:",
00056         String.Interpol:           "bg:#eee",
00057         String.Escape:             "bold #666",
00058         String.Regex:              "bg:#e0e0ff #000",
00059         String.Symbol:             "#fc8 bg:",
00060         String.Other:              "#f88",
00061 
00062         Number:                    "bold #60E",
00063         Number.Integer:            "bold #66f",
00064         Number.Float:              "bold #60E",
00065         Number.Hex:                "bold #058",
00066         Number.Oct:                "bold #40E",
00067 
00068         Generic.Heading:           "bold #000080",
00069         Generic.Subheading:        "bold #800080",
00070         Generic.Deleted:           "#A00000",
00071         Generic.Inserted:          "#00A000",
00072         Generic.Error:             "#FF0000",
00073         Generic.Emph:              "italic",
00074         Generic.Strong:            "bold",
00075         Generic.Prompt:            "bold #c65d09",
00076         Generic.Output:            "#888",
00077         Generic.Traceback:         "#04D",
00078 
00079         Error:                     "#F00 bg:#FAA"
00080     }