##// END OF EJS Templates
Merge pull request #4682 from dbarbeau/syntax-highlight...
Min RK -
r16439:2444facf merge
parent child Browse files
Show More
@@ -3,7 +3,7 b' Module containing filter functions that allow code to be highlighted'
3 from within Jinja templates.
3 from within Jinja templates.
4 """
4 """
5 #-----------------------------------------------------------------------------
5 #-----------------------------------------------------------------------------
6 # Copyright (c) 2013, the IPython Development Team.
6 # Copyright (c) the IPython Development Team.
7 #
7 #
8 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
9 #
9 #
@@ -56,7 +56,10 b' class Highlight2HTML(NbConvertBase):'
56 if not language:
56 if not language:
57 language=self.default_language
57 language=self.default_language
58
58
59 return _pygments_highlight(source if len(source) > 0 else ' ', HtmlFormatter(), language, metadata)
59 return _pygments_highlight(source if len(source) > 0 else ' ',
60 # needed to help post processors:
61 HtmlFormatter(cssclass="hl-"+language),
62 language, metadata)
60
63
61
64
62 class Highlight2Latex(NbConvertBase):
65 class Highlight2Latex(NbConvertBase):
General Comments 0
You need to be logged in to leave comments. Login now