Back to index

moin  1.9.0~rc2
manni.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.manni
00004     ~~~~~~~~~~~~~~~~~~~~~
00005 
00006     A colorful style, inspired by the terminal highlighting style.
00007 
00008     This is a port of the style used in the `php port`_ of pygments
00009     by Manni. The style is called 'default' there.
00010 
00011     :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS.
00012     :license: BSD, see LICENSE for details.
00013 """
00014 
00015 from pygments.style import Style
00016 from pygments.token import Keyword, Name, Comment, String, Error, \
00017      Number, Operator, Generic, Whitespace
00018 
00019 
00020 class ManniStyle(Style):
00021     """
00022     A colorful style, inspired by the terminal highlighting style.
00023     """
00024 
00025     background_color = '#f0f3f3'
00026 
00027     styles = {
00028         Whitespace:         '#bbbbbb',
00029         Comment:            'italic #0099FF',
00030         Comment.Preproc:    'noitalic #009999',
00031         Comment.Special:    'bold',
00032 
00033         Keyword:            'bold #006699',
00034         Keyword.Pseudo:     'nobold',
00035         Keyword.Type:       '#007788',
00036 
00037         Operator:           '#555555',
00038         Operator.Word:      'bold #000000',
00039 
00040         Name.Builtin:       '#336666',
00041         Name.Function:      '#CC00FF',
00042         Name.Class:         'bold #00AA88',
00043         Name.Namespace:     'bold #00CCFF',
00044         Name.Exception:     'bold #CC0000',
00045         Name.Variable:      '#003333',
00046         Name.Constant:      '#336600',
00047         Name.Label:         '#9999FF',
00048         Name.Entity:        'bold #999999',
00049         Name.Attribute:     '#330099',
00050         Name.Tag:           'bold #330099',
00051         Name.Decorator:     '#9999FF',
00052 
00053         String:             '#CC3300',
00054         String.Doc:         'italic',
00055         String.Interpol:    '#AA0000',
00056         String.Escape:      'bold #CC3300',
00057         String.Regex:       '#33AAAA',
00058         String.Symbol:      '#FFCC33',
00059         String.Other:       '#CC3300',
00060 
00061         Number:             '#FF6600',
00062 
00063         Generic.Heading:    'bold #003300',
00064         Generic.Subheading: 'bold #003300',
00065         Generic.Deleted:    'border:#CC0000 bg:#FFCCCC',
00066         Generic.Inserted:   'border:#00CC00 bg:#CCFFCC',
00067         Generic.Error:      '#FF0000',
00068         Generic.Emph:       'italic',
00069         Generic.Strong:     'bold',
00070         Generic.Prompt:     'bold #000099',
00071         Generic.Output:     '#AAAAAA',
00072         Generic.Traceback:  '#99CC66',
00073 
00074         Error:              'bg:#FFAAAA #AA0000'
00075     }