From bd926140e0b4005fc082f12f7c119498ced420a2 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 25 Mar 2010 13:20:15 -0400 Subject: Changed the default style used by pygments in the codehilite extension. This was a recently added feature, but older versions of pygments don't know what the 'tango' style is, so we now use pygemnts 'default' by default. Not sure why the 'tango' style was used here in the first place. I'm guess it was the preferance of whoever contributed the patch. --- markdown/extensions/codehilite.py | 2 +- tests/extensions/codehilite.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/markdown/extensions/codehilite.py b/markdown/extensions/codehilite.py index b9e1760..9c6cbd4 100644 --- a/markdown/extensions/codehilite.py +++ b/markdown/extensions/codehilite.py @@ -214,7 +214,7 @@ class CodeHiliteExtension(markdown.Extension): 'force_linenos' : [False, "Force line numbers - Default: False"], 'css_class' : ["codehilite", "Set class name for wrapper
- Default: codehilite"], - 'pygments_style' : ['tango', 'Pygments HTML Formatter Style (Colorscheme) - Default: tango'], + 'pygments_style' : ['default', 'Pygments HTML Formatter Style (Colorscheme) - Default: default'], 'noclasses': [False, 'Use inline styles instead of CSS classes - Default false'] } diff --git a/tests/extensions/codehilite.html b/tests/extensions/codehilite.html index 366682e..6a8ee91 100644 --- a/tests/extensions/codehilite.html +++ b/tests/extensions/codehilite.html @@ -1,10 +1,10 @@

Some text

-
1
+
1
 2
 3
 4
 5
-6
def __init__ (self, pattern) :
+6
def __init__ (self, pattern) :
     self.pattern = pattern
     self.compiled_re = re.compile("^(.*)%s(.*)$" % pattern, re.DOTALL)
 
-- 
cgit v1.2.3