codekingpro/portable-devtools
114k
1"""2 pygments.styles.vim3 ~~~~~~~~~~~~~~~~~~~4 5 A highlighting style for Pygments, inspired by vim.6 7 :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.8 :license: BSD, see LICENSE for details.9"""10 11from pygments.style import Style12from pygments.token import Keyword, Name, Comment, String, Error, \13 Number, Operator, Generic, Whitespace, Token14 15 16__all__ = ['VimStyle']17 18 19class VimStyle(Style):20 """21 Styles somewhat like vim 7.022 """23 24 name = 'vim'25 26 background_color = "#000000"27 highlight_color = "#222222"28 29 styles = {30 Token: "#cccccc",31 Whitespace: "",32 Comment: "#000080",33 Comment.Preproc: "",34 Comment.Special: "bold #cd0000",35 36 Keyword: "#cdcd00",37 Keyword.Declaration: "#00cd00",38 Keyword.Namespace: "#cd00cd",39 Keyword.Pseudo: "",40 Keyword.Type: "#00cd00",41 42 Operator: "#3399cc",43 Operator.Word: "#cdcd00",44 45 Name: "",46 Name.Class: "#00cdcd",47 Name.Builtin: "#cd00cd",48 Name.Exception: "bold #666699",49 Name.Variable: "#00cdcd",50 51 String: "#cd0000",52 Number: "#cd00cd",53 54 Generic.Heading: "bold #000080",55 Generic.Subheading: "bold #800080",56 Generic.Deleted: "#cd0000",57 Generic.Inserted: "#00cd00",58 Generic.Error: "#FF0000",59 Generic.Emph: "italic",60 Generic.Strong: "bold",61 Generic.EmphStrong: "bold italic",62 Generic.Prompt: "bold #000080",63 Generic.Output: "#888",64 Generic.Traceback: "#04D",65 66 Error: "border:#FF0000"67 }68 