##// END OF EJS Templates
highlight: move code from module top-level into extsetup
Martin Geisler -
r9409:57157a22 default
parent child Browse files
Show More
@@ -53,6 +53,7 b' def generate_css(web, req, tmpl):'
53 req.respond(common.HTTP_OK, 'text/css')
53 req.respond(common.HTTP_OK, 'text/css')
54 return ['/* pygments_style = %s */\n\n' % pg_style, fmter.get_style_defs('')]
54 return ['/* pygments_style = %s */\n\n' % pg_style, fmter.get_style_defs('')]
55
55
56 def extsetup():
56 # monkeypatch in the new version
57 # monkeypatch in the new version
57 extensions.wrapfunction(webcommands, '_filerevision', filerevision_highlight)
58 extensions.wrapfunction(webcommands, '_filerevision', filerevision_highlight)
58 extensions.wrapfunction(webcommands, 'annotate', annotate_highlight)
59 extensions.wrapfunction(webcommands, 'annotate', annotate_highlight)
General Comments 0
You need to be logged in to leave comments. Login now