summaryrefslogtreecommitdiff
path: root/pygments/styles
diff options
context:
space:
mode:
authorwelterde <devnull@localhost>2007-01-08 21:23:26 +0100
committerwelterde <devnull@localhost>2007-01-08 21:23:26 +0100
commit61de5a234ccae793e7e086fed4b8b25634370764 (patch)
treef05d165e4278f2a4614e19190326932aba2d290e /pygments/styles
parent1377883d54889e42b5f85282ab321b6cfcbd304e (diff)
downloadpygments-61de5a234ccae793e7e086fed4b8b25634370764.tar.gz
[svn] added fruity theme(converted from vim theme fruity by blackbird)
Diffstat (limited to 'pygments/styles')
-rw-r--r--pygments/styles/__init__.py3
-rw-r--r--pygments/styles/fruity.py31
2 files changed, 33 insertions, 1 deletions
diff --git a/pygments/styles/__init__.py b/pygments/styles/__init__.py
index 0dc97322..c75493b4 100644
--- a/pygments/styles/__init__.py
+++ b/pygments/styles/__init__.py
@@ -24,7 +24,8 @@ STYLE_MAP = {
'pastie': 'pastie::PastieStyle',
'borland': 'borland::BorlandStyle',
'trac': 'trac::TracStyle',
- 'native': 'native::NativeStyle'
+ 'native': 'native::NativeStyle',
+ 'fruity': 'fruity::FruityStyle'
}
diff --git a/pygments/styles/fruity.py b/pygments/styles/fruity.py
new file mode 100644
index 00000000..8031ce97
--- /dev/null
+++ b/pygments/styles/fruity.py
@@ -0,0 +1,31 @@
+# -*- coding: utf-8 -*-
+"""
+ pygments.styles.fruity
+ ~~~~~~~~~~~~~~~~~~~~~~
+
+ pygments version of my "native" vim theme.
+
+ :copyright: 2007 by Armin Ronacher.
+ :license: BSD, see LICENSE for more details.
+"""
+
+from pykleur.style import Style
+from pykleur.token import Comment, Name, Keyword, Generic, Number, Operator, String
+
+class FruityStyle(Style):
+ default_style = 'ffffff bg:111111'
+ styles = {
+ Generic.Output: '444444 bg:222222',
+ Keyword: 'fb660a bold',
+ Number: '0086f7 bold',
+ Name.Tag: 'fb660a bold',
+ Comment: '008800 bg:0f140f italic',
+ Name.Attribute: 'ff0086 bold',
+ String: '0086d2',
+ Name.Function: 'ff0086 bold',
+ Generic.Heading: 'ffffff bold',
+ Keyword.Type: 'cdcaa9 bold',
+ Generic.Subheading: 'ffffff bold',
+ Name.Constant: '0086d2',
+ Comment.Preproc: 'ff0007 bold'
+ }