Back to index

moin  1.9.0~rc2
pastie.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.pastie
00004     ~~~~~~~~~~~~~~~~~~~~~~
00005 
00006     Style similar to the `pastie`_ default style.
00007 
00008     .. _pastie: http://pastie.caboo.se/
00009 
00010     :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS.
00011     :license: BSD, see LICENSE for details.
00012 """
00013 
00014 from pygments.style import Style
00015 from pygments.token import Keyword, Name, Comment, String, Error, \
00016      Number, Operator, Generic, Whitespace
00017 
00018 
00019 class PastieStyle(Style):
00020     """
00021     Style similar to the pastie default style.
00022     """
00023 
00024     default_style = ''
00025 
00026     styles = {
00027         Whitespace:             '#bbbbbb',
00028         Comment:                '#888888',
00029         Comment.Preproc:        'bold #cc0000',
00030         Comment.Special:        'bg:#fff0f0 bold #cc0000',
00031 
00032         String:                 'bg:#fff0f0 #dd2200',
00033         String.Regex:           'bg:#fff0ff #008800',
00034         String.Other:           'bg:#f0fff0 #22bb22',
00035         String.Symbol:          '#aa6600',
00036         String.Interpol:        '#3333bb',
00037         String.Escape:          '#0044dd',
00038 
00039         Operator.Word:          '#008800',
00040 
00041         Keyword:                'bold #008800',
00042         Keyword.Pseudo:         'nobold',
00043         Keyword.Type:           '#888888',
00044 
00045         Name.Class:             'bold #bb0066',
00046         Name.Exception:         'bold #bb0066',
00047         Name.Function:          'bold #0066bb',
00048         Name.Property:          'bold #336699',
00049         Name.Namespace:         'bold #bb0066',
00050         Name.Builtin:           '#003388',
00051         Name.Variable:          '#336699',
00052         Name.Variable.Class:    '#336699',
00053         Name.Variable.Instance: '#3333bb',
00054         Name.Variable.Global:   '#dd7700',
00055         Name.Constant:          'bold #003366',
00056         Name.Tag:               'bold #bb0066',
00057         Name.Attribute:         '#336699',
00058         Name.Decorator:         '#555555',
00059         Name.Label:             'italic #336699',
00060 
00061         Number:                 'bold #0000DD',
00062 
00063         Generic.Heading:        '#333',
00064         Generic.Subheading:     '#666',
00065         Generic.Deleted:        'bg:#ffdddd #000000',
00066         Generic.Inserted:       'bg:#ddffdd #000000',
00067         Generic.Error:          '#aa0000',
00068         Generic.Emph:           'italic',
00069         Generic.Strong:         'bold',
00070         Generic.Prompt:         '#555555',
00071         Generic.Output:         '#888888',
00072         Generic.Traceback:      '#aa0000',
00073 
00074         Error:                  'bg:#e3d2d2 #a61717'
00075     }