Back to index

moin  1.9.0~rc2
autumn.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.autumn
00004     ~~~~~~~~~~~~~~~~~~~~~~
00005 
00006     A colorful style, inspired by the terminal 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 AutumnStyle(Style):
00018     """
00019     A colorful style, inspired by the terminal highlighting style.
00020     """
00021 
00022     default_style = ""
00023 
00024     styles = {
00025         Whitespace:                 '#bbbbbb',
00026 
00027         Comment:                    'italic #aaaaaa',
00028         Comment.Preproc:            'noitalic #4c8317',
00029         Comment.Special:            'italic #0000aa',
00030 
00031         Keyword:                    '#0000aa',
00032         Keyword.Type:               '#00aaaa',
00033 
00034         Operator.Word:              '#0000aa',
00035 
00036         Name.Builtin:               '#00aaaa',
00037         Name.Function:              '#00aa00',
00038         Name.Class:                 'underline #00aa00',
00039         Name.Namespace:             'underline #00aaaa',
00040         Name.Variable:              '#aa0000',
00041         Name.Constant:              '#aa0000',
00042         Name.Entity:                'bold #800',
00043         Name.Attribute:             '#1e90ff',
00044         Name.Tag:                   'bold #1e90ff',
00045         Name.Decorator:             '#888888',
00046 
00047         String:                     '#aa5500',
00048         String.Symbol:              '#0000aa',
00049         String.Regex:               '#009999',
00050 
00051         Number:                     '#009999',
00052 
00053         Generic.Heading:            'bold #000080',
00054         Generic.Subheading:         'bold #800080',
00055         Generic.Deleted:            '#aa0000',
00056         Generic.Inserted:           '#00aa00',
00057         Generic.Error:              '#aa0000',
00058         Generic.Emph:               'italic',
00059         Generic.Strong:             'bold',
00060         Generic.Prompt:             '#555555',
00061         Generic.Output:             '#888888',
00062         Generic.Traceback:          '#aa0000',
00063 
00064         Error:                      '#F00 bg:#FAA'
00065     }