Back to index

moin  1.9.0~rc2
bw.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.bw
00004     ~~~~~~~~~~~~~~~~~~
00005 
00006     Simple black/white only 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      Operator, Generic
00015 
00016 
00017 class BlackWhiteStyle(Style):
00018 
00019     background_color = "#ffffff"
00020     default_style = ""
00021 
00022     styles = {
00023         Comment:                   "italic",
00024         Comment.Preproc:           "noitalic",
00025 
00026         Keyword:                   "bold",
00027         Keyword.Pseudo:            "nobold",
00028         Keyword.Type:              "nobold",
00029 
00030         Operator.Word:             "bold",
00031 
00032         Name.Class:                "bold",
00033         Name.Namespace:            "bold",
00034         Name.Exception:            "bold",
00035         Name.Entity:               "bold",
00036         Name.Tag:                  "bold",
00037 
00038         String:                    "italic",
00039         String.Interpol:           "bold",
00040         String.Escape:             "bold",
00041 
00042         Generic.Heading:           "bold",
00043         Generic.Subheading:        "bold",
00044         Generic.Emph:              "italic",
00045         Generic.Strong:            "bold",
00046         Generic.Prompt:            "bold",
00047 
00048         Error:                     "border:#FF0000"
00049     }