Back to index

moin  1.9.0~rc2
borland.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.borland
00004     ~~~~~~~~~~~~~~~~~~~~~~~
00005 
00006     Style similar to the style used in the Borland IDEs.
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 BorlandStyle(Style):
00018     """
00019     Style similar to the style used in the borland IDEs.
00020     """
00021 
00022     default_style = ''
00023 
00024     styles = {
00025         Whitespace:             '#bbbbbb',
00026 
00027         Comment:                'italic #008800',
00028         Comment.Preproc:        'noitalic #008080',
00029         Comment.Special:        'noitalic bold',
00030 
00031         String:                 '#0000FF',
00032         String.Char:            '#800080',
00033         Number:                 '#0000FF',
00034         Keyword:                'bold #000080',
00035         Operator.Word:          'bold',
00036         Name.Tag:               'bold #000080',
00037         Name.Attribute:         '#FF0000',
00038 
00039         Generic.Heading:        '#999999',
00040         Generic.Subheading:     '#aaaaaa',
00041         Generic.Deleted:        'bg:#ffdddd #000000',
00042         Generic.Inserted:       'bg:#ddffdd #000000',
00043         Generic.Error:          '#aa0000',
00044         Generic.Emph:           'italic',
00045         Generic.Strong:         'bold',
00046         Generic.Prompt:         '#555555',
00047         Generic.Output:         '#888888',
00048         Generic.Traceback:      '#aa0000',
00049 
00050         Error:                  'bg:#e3d2d2 #a61717'
00051     }