Mercurial > hg
comparison hgext/highlight/__init__.py @ 19872:681f7b9213a4
check-code: check for spaces around = for named parameters
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 03 Oct 2013 14:50:47 +0200 |
parents | 38caf405d010 |
children | 80c5b2666a96 |
comparison
equal
deleted
inserted
replaced
19871:6e74632170d3 | 19872:681f7b9213a4 |
---|---|
48 highlight.pygmentize('annotateline', fctx, style, tmpl) | 48 highlight.pygmentize('annotateline', fctx, style, tmpl) |
49 return orig(web, req, tmpl) | 49 return orig(web, req, tmpl) |
50 | 50 |
51 def generate_css(web, req, tmpl): | 51 def generate_css(web, req, tmpl): |
52 pg_style = web.config('web', 'pygments_style', 'colorful') | 52 pg_style = web.config('web', 'pygments_style', 'colorful') |
53 fmter = highlight.HtmlFormatter(style = pg_style) | 53 fmter = highlight.HtmlFormatter(style=pg_style) |
54 req.respond(common.HTTP_OK, 'text/css') | 54 req.respond(common.HTTP_OK, 'text/css') |
55 return ['/* pygments_style = %s */\n\n' % pg_style, | 55 return ['/* pygments_style = %s */\n\n' % pg_style, |
56 fmter.get_style_defs('')] | 56 fmter.get_style_defs('')] |
57 | 57 |
58 def extsetup(): | 58 def extsetup(): |