Back to index

moin  1.9.0~rc2
trac.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.trac
00004     ~~~~~~~~~~~~~~~~~~~~
00005 
00006     Port of the default trac highlighter design.
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 TracStyle(Style):
00018     """
00019     Port of the default trac highlighter design.
00020     """
00021 
00022     default_style = ''
00023 
00024     styles = {
00025         Whitespace:             '#bbbbbb',
00026         Comment:                'italic #999988',
00027         Comment.Preproc:        'bold noitalic #999999',
00028         Comment.Special:        'bold #999999',
00029 
00030         Operator:               'bold',
00031 
00032         String:                 '#bb8844',
00033         String.Regex:           '#808000',
00034 
00035         Number:                 '#009999',
00036 
00037         Keyword:                'bold',
00038         Keyword.Type:           '#445588',
00039 
00040         Name.Builtin:           '#999999',
00041         Name.Function:          'bold #990000',
00042         Name.Class:             'bold #445588',
00043         Name.Exception:         'bold #990000',
00044         Name.Namespace:         '#555555',
00045         Name.Variable:          '#008080',
00046         Name.Constant:          '#008080',
00047         Name.Tag:               '#000080',
00048         Name.Attribute:         '#008080',
00049         Name.Entity:            '#800080',
00050 
00051         Generic.Heading:        '#999999',
00052         Generic.Subheading:     '#aaaaaa',
00053         Generic.Deleted:        'bg:#ffdddd #000000',
00054         Generic.Inserted:       'bg:#ddffdd #000000',
00055         Generic.Error:          '#aa0000',
00056         Generic.Emph:           'italic',
00057         Generic.Strong:         'bold',
00058         Generic.Prompt:         '#555555',
00059         Generic.Output:         '#888888',
00060         Generic.Traceback:      '#aa0000',
00061 
00062         Error:                  'bg:#e3d2d2 #a61717'
00063     }