##// 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,8 +53,9 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 # monkeypatch in the new version
56 def extsetup():
57 extensions.wrapfunction(webcommands, '_filerevision', filerevision_highlight)
57 # monkeypatch in the new version
58 extensions.wrapfunction(webcommands, 'annotate', annotate_highlight)
58 extensions.wrapfunction(webcommands, '_filerevision', filerevision_highlight)
59 webcommands.highlightcss = generate_css
59 extensions.wrapfunction(webcommands, 'annotate', annotate_highlight)
60 webcommands.__all__.append('highlightcss')
60 webcommands.highlightcss = generate_css
61 webcommands.__all__.append('highlightcss')
General Comments 0
You need to be logged in to leave comments. Login now