Back to index

moin  1.9.0~rc2
native.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.native
00004     ~~~~~~~~~~~~~~~~~~~~~~
00005 
00006     pygments version of my "native" vim theme.
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, Token, Whitespace
00015 
00016 
00017 class NativeStyle(Style):
00018     """
00019     Pygments version of the "native" vim theme.
00020     """
00021 
00022     background_color = '#202020'
00023     highlight_color = '#404040'
00024 
00025     styles = {
00026         Token:              '#d0d0d0',
00027         Whitespace:         '#666666',
00028 
00029         Comment:            'italic #999999',
00030         Comment.Preproc:    'noitalic bold #cd2828',
00031         Comment.Special:    'noitalic bold #e50808 bg:#520000',
00032 
00033         Keyword:            'bold #6ab825',
00034         Keyword.Pseudo:     'nobold',
00035         Operator.Word:      'bold #6ab825',
00036 
00037         String:             '#ed9d13',
00038         String.Other:       '#ffa500',
00039 
00040         Number:             '#3677a9',
00041 
00042         Name.Builtin:       '#24909d',
00043         Name.Variable:      '#40ffff',
00044         Name.Constant:      '#40ffff',
00045         Name.Class:         'underline #447fcf',
00046         Name.Function:      '#447fcf',
00047         Name.Namespace:     'underline #447fcf',
00048         Name.Exception:     '#bbbbbb',
00049         Name.Tag:           'bold #6ab825',
00050         Name.Attribute:     '#bbbbbb',
00051         Name.Decorator:     '#ffa500',
00052 
00053         Generic.Heading:    'bold #ffffff',
00054         Generic.Subheading: 'underline #ffffff',
00055         Generic.Deleted:    '#d22323',
00056         Generic.Inserted:   '#589819',
00057         Generic.Error:      '#d22323',
00058         Generic.Emph:       'italic',
00059         Generic.Strong:     'bold',
00060         Generic.Prompt:     '#aaaaaa',
00061         Generic.Output:     '#cccccc',
00062         Generic.Traceback:  '#d22323',
00063 
00064         Error:              'bg:#e3d2d2 #a61717'
00065     }