##// END OF EJS Templates
Allow specification of full highlight class in CSSHTMLHeader
Jake Vanderplas -
Show More
@@ -35,7 +35,7 b' class CSSHtmlHeaderTransformer(ActivatableTransformer):'
35
35
36 header = []
36 header = []
37
37
38 highlight_class = Unicode('highlight', config=True,
38 highlight_class = Unicode('.highlight', config=True,
39 help="CSS highlight class identifier")
39 help="CSS highlight class identifier")
40
40
41 def __init__(self, config=None, **kw):
41 def __init__(self, config=None, **kw):
@@ -103,7 +103,7 b' class CSSHtmlHeaderTransformer(ActivatableTransformer):'
103
103
104 #Add pygments CSS
104 #Add pygments CSS
105 formatter = HtmlFormatter()
105 formatter = HtmlFormatter()
106 pygments_css = formatter.get_style_defs('.' + self.highlight_class)
106 pygments_css = formatter.get_style_defs(self.highlight_class)
107 header.append(pygments_css)
107 header.append(pygments_css)
108
108
109 #Set header
109 #Set header
General Comments 0
You need to be logged in to leave comments. Login now