Back to index

moin  1.9.0~rc2
default.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.default
00004     ~~~~~~~~~~~~~~~~~~~~~~~
00005 
00006     The default highlighting style.
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 DefaultStyle(Style):
00018     """
00019     The default style (inspired by Emacs 22).
00020     """
00021 
00022     background_color = "#f8f8f8"
00023     default_style = ""
00024 
00025     styles = {
00026         Whitespace:                "#bbbbbb",
00027         Comment:                   "italic #408080",
00028         Comment.Preproc:           "noitalic #BC7A00",
00029 
00030         #Keyword:                   "bold #AA22FF",
00031         Keyword:                   "bold #008000",
00032         Keyword.Pseudo:            "nobold",
00033         Keyword.Type:              "nobold #B00040",
00034 
00035         Operator:                  "#666666",
00036         Operator.Word:             "bold #AA22FF",
00037 
00038         Name.Builtin:              "#008000",
00039         Name.Function:             "#0000FF",
00040         Name.Class:                "bold #0000FF",
00041         Name.Namespace:            "bold #0000FF",
00042         Name.Exception:            "bold #D2413A",
00043         Name.Variable:             "#19177C",
00044         Name.Constant:             "#880000",
00045         Name.Label:                "#A0A000",
00046         Name.Entity:               "bold #999999",
00047         Name.Attribute:            "#7D9029",
00048         Name.Tag:                  "bold #008000",
00049         Name.Decorator:            "#AA22FF",
00050 
00051         String:                    "#BA2121",
00052         String.Doc:                "italic",
00053         String.Interpol:           "bold #BB6688",
00054         String.Escape:             "bold #BB6622",
00055         String.Regex:              "#BB6688",
00056         #String.Symbol:             "#B8860B",
00057         String.Symbol:             "#19177C",
00058         String.Other:              "#008000",
00059         Number:                    "#666666",
00060 
00061         Generic.Heading:           "bold #000080",
00062         Generic.Subheading:        "bold #800080",
00063         Generic.Deleted:           "#A00000",
00064         Generic.Inserted:          "#00A000",
00065         Generic.Error:             "#FF0000",
00066         Generic.Emph:              "italic",
00067         Generic.Strong:            "bold",
00068         Generic.Prompt:            "bold #000080",
00069         Generic.Output:            "#888",
00070         Generic.Traceback:         "#04D",
00071 
00072         Error:                     "border:#FF0000"
00073     }