diff options
-rw-r--r-- | pygments/styles/__init__.py | 3 | ||||
-rw-r--r-- | pygments/styles/vs.py | 39 |
2 files changed, 41 insertions, 1 deletions
diff --git a/pygments/styles/__init__.py b/pygments/styles/__init__.py index 30cf65cb..453caf0d 100644 --- a/pygments/styles/__init__.py +++ b/pygments/styles/__init__.py @@ -5,7 +5,7 @@ Contains built-in styles. - :copyright: 2006-2007 by Georg Brandl. + :copyright: 2006-2008 by Georg Brandl. :license: BSD, see LICENSE for more details. """ @@ -29,6 +29,7 @@ STYLE_MAP = { 'native': 'native::NativeStyle', 'fruity': 'fruity::FruityStyle', 'bw': 'bw::BlackWhiteStyle', + 'vs': 'vs::VisualStudioStyle', } diff --git a/pygments/styles/vs.py b/pygments/styles/vs.py new file mode 100644 index 00000000..aa320a24 --- /dev/null +++ b/pygments/styles/vs.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +""" + pygments.styles.vs + ~~~~~~~~~~~~~~~~~~ + + Simple style with MS Visual Studio colors. + + :copyright: 2008 by Georg Brandl. + :license: BSD, see LICENSE for more details. +""" + +from pygments.style import Style +from pygments.token import Keyword, Name, Comment, String, Error, \ + Number, Operator, Generic, Whitespace + + +class VisualStudioStyle(Style): + + background_color = "#ffffff" + default_style = "" + + styles = { + Comment: "#008000", + Comment.Preproc: "#0000ff", + Keyword: "#0000ff", + Operator.Word: "#0000ff", + Keyword.Type: "#2b91af", + Name.Class: "#2b91af", + Name.Type: "#2b91af", + String: "#a31515", + + Generic.Heading: "bold", + Generic.Subheading: "bold", + Generic.Emph: "italic", + Generic.Strong: "bold", + Generic.Prompt: "bold", + + Error: "border:#FF0000" + } |