##// END OF EJS Templates
highlight: mandatory arguments where possible
Christian Ebert -
r5654:831e34e1 default
parent child Browse files
Show More
@@ -66,8 +66,7 b' class StripedHtmlFormatter(HtmlFormatter'
66 yield 0, "</div>"
66 yield 0, "</div>"
67
67
68
68
69 def pygments_format(filename, rawtext, forcetext=False, stripecount=1,
69 def pygments_format(filename, rawtext, forcetext, stripecount, style):
70 style='colorful'):
71 if not forcetext:
70 if not forcetext:
72 try:
71 try:
73 lexer = guess_lexer_for_filename(filename, rawtext)
72 lexer = guess_lexer_for_filename(filename, rawtext)
@@ -110,10 +109,8 b' def filerevision_pygments(self, tmpl, fc'
110
109
111 style = self.config("web", "pygments_style", "colorful")
110 style = self.config("web", "pygments_style", "colorful")
112
111
113 text_formatted = lines(pygments_format(f, text,
112 text_formatted = lines(pygments_format(f, text, forcetext,
114 forcetext=forcetext,
113 self.stripecount, style))
115 stripecount=self.stripecount,
116 style=style))
117
114
118 # override per-line template
115 # override per-line template
119 tmpl.cache['fileline'] = '#line#'
116 tmpl.cache['fileline'] = '#line#'
General Comments 0
You need to be logged in to leave comments. Login now