summaryrefslogtreecommitdiff
path: root/pygments/styles/vs.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2008-05-23 12:28:27 +0200
committergbrandl <devnull@localhost>2008-05-23 12:28:27 +0200
commit9d8cf0749d280f0f000d8579dae9ba95c3e68757 (patch)
tree701d7d4a156a770d3e47b5599bcb1d8c1d524b2a /pygments/styles/vs.py
parent1586169ddf6409f7f44f520190c0d6bfde6efb23 (diff)
downloadpygments-9d8cf0749d280f0f000d8579dae9ba95c3e68757.tar.gz
Add a "visual studio" style.
Diffstat (limited to 'pygments/styles/vs.py')
-rw-r--r--pygments/styles/vs.py39
1 files changed, 39 insertions, 0 deletions
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"
+ }