1
# -*- coding: utf-8 -*-
6
A highlighting style for Pygments, inspired by vim.
8
:copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.
9
:license: BSD, see LICENSE for details.
12
from pygments.style import Style
13
from pygments.token import Keyword, Name, Comment, String, Error, \
14
Number, Operator, Generic, Whitespace, Token
17
class VimStyle(Style):
19
Styles somewhat like vim 7.0
22
background_color = "#000000"
23
highlight_color = "#222222"
24
default_style = "#cccccc"
31
Comment.Special: "bold #cd0000",
34
Keyword.Declaration: "#00cd00",
35
Keyword.Namespace: "#cd00cd",
37
Keyword.Type: "#00cd00",
40
Operator.Word: "#cdcd00",
43
Name.Class: "#00cdcd",
44
Name.Builtin: "#cd00cd",
45
Name.Exception: "bold #666699",
46
Name.Variable: "#00cdcd",
51
Generic.Heading: "bold #000080",
52
Generic.Subheading: "bold #800080",
53
Generic.Deleted: "#cd0000",
54
Generic.Inserted: "#00cd00",
55
Generic.Error: "#FF0000",
56
Generic.Emph: "italic",
57
Generic.Strong: "bold",
58
Generic.Prompt: "bold #000080",
59
Generic.Output: "#888",
60
Generic.Traceback: "#04D",
62
Error: "border:#FF0000"