Back to index

moin  1.9.0~rc2
friendly.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.friendly
00004     ~~~~~~~~~~~~~~~~~~~~~~~~
00005 
00006     A modern style based on the VIM pyte theme.
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 FriendlyStyle(Style):
00018     """
00019     A modern style based on the VIM pyte theme.
00020     """
00021 
00022     background_color = "#f0f0f0"
00023     default_style = ""
00024 
00025     styles = {
00026         Whitespace:                "#bbbbbb",
00027         Comment:                   "italic #60a0b0",
00028         Comment.Preproc:           "noitalic #007020",
00029         Comment.Special:           "noitalic bg:#fff0f0",
00030 
00031         Keyword:                   "bold #007020",
00032         Keyword.Pseudo:            "nobold",
00033         Keyword.Type:              "nobold #902000",
00034 
00035         Operator:                  "#666666",
00036         Operator.Word:             "bold #007020",
00037 
00038         Name.Builtin:              "#007020",
00039         Name.Function:             "#06287e",
00040         Name.Class:                "bold #0e84b5",
00041         Name.Namespace:            "bold #0e84b5",
00042         Name.Exception:            "#007020",
00043         Name.Variable:             "#bb60d5",
00044         Name.Constant:             "#60add5",
00045         Name.Label:                "bold #002070",
00046         Name.Entity:               "bold #d55537",
00047         Name.Attribute:            "#4070a0",
00048         Name.Tag:                  "bold #062873",
00049         Name.Decorator:            "bold #555555",
00050 
00051         String:                    "#4070a0",
00052         String.Doc:                "italic",
00053         String.Interpol:           "italic #70a0d0",
00054         String.Escape:             "bold #4070a0",
00055         String.Regex:              "#235388",
00056         String.Symbol:             "#517918",
00057         String.Other:              "#c65d09",
00058         Number:                    "#40a070",
00059 
00060         Generic.Heading:           "bold #000080",
00061         Generic.Subheading:        "bold #800080",
00062         Generic.Deleted:           "#A00000",
00063         Generic.Inserted:          "#00A000",
00064         Generic.Error:             "#FF0000",
00065         Generic.Emph:              "italic",
00066         Generic.Strong:            "bold",
00067         Generic.Prompt:            "bold #c65d09",
00068         Generic.Output:            "#888",
00069         Generic.Traceback:         "#04D",
00070 
00071         Error:                     "border:#FF0000"
00072     }