Back to index

moin  1.9.0~rc2
vim.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 """
00003     pygments.styles.vim
00004     ~~~~~~~~~~~~~~~~~~~
00005 
00006     A highlighting style for Pygments, inspired by vim.
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, Token
00015 
00016 
00017 class VimStyle(Style):
00018     """
00019     Styles somewhat like vim 7.0
00020     """
00021 
00022     background_color = "#000000"
00023     highlight_color = "#222222"
00024     default_style = "#cccccc"
00025 
00026     styles = {
00027         Token:                     "#cccccc",
00028         Whitespace:                "",
00029         Comment:                   "#000080",
00030         Comment.Preproc:           "",
00031         Comment.Special:           "bold #cd0000",
00032 
00033         Keyword:                   "#cdcd00",
00034         Keyword.Declaration:       "#00cd00",
00035         Keyword.Namespace:         "#cd00cd",
00036         Keyword.Pseudo:            "",
00037         Keyword.Type:              "#00cd00",
00038 
00039         Operator:                  "#3399cc",
00040         Operator.Word:             "#cdcd00",
00041 
00042         Name:                      "",
00043         Name.Class:                "#00cdcd",
00044         Name.Builtin:              "#cd00cd",
00045         Name.Exception:            "bold #666699",
00046         Name.Variable:             "#00cdcd",
00047 
00048         String:                    "#cd0000",
00049         Number:                    "#cd00cd",
00050 
00051         Generic.Heading:           "bold #000080",
00052         Generic.Subheading:        "bold #800080",
00053         Generic.Deleted:           "#cd0000",
00054         Generic.Inserted:          "#00cd00",
00055         Generic.Error:             "#FF0000",
00056         Generic.Emph:              "italic",
00057         Generic.Strong:            "bold",
00058         Generic.Prompt:            "bold #000080",
00059         Generic.Output:            "#888",
00060         Generic.Traceback:         "#04D",
00061 
00062         Error:                     "border:#FF0000"
00063     }