equal
deleted
inserted
replaced
22 """ |
22 """ |
23 |
23 |
24 import highlight |
24 import highlight |
25 from mercurial.hgweb import webcommands, webutil, common |
25 from mercurial.hgweb import webcommands, webutil, common |
26 from mercurial import extensions, encoding |
26 from mercurial import extensions, encoding |
|
27 testedwith = 'internal' |
27 |
28 |
28 def filerevision_highlight(orig, web, tmpl, fctx): |
29 def filerevision_highlight(orig, web, tmpl, fctx): |
29 mt = ''.join(tmpl('mimetype', encoding=encoding.encoding)) |
30 mt = ''.join(tmpl('mimetype', encoding=encoding.encoding)) |
30 # only pygmentize for mimetype containing 'html' so we both match |
31 # only pygmentize for mimetype containing 'html' so we both match |
31 # 'text/html' and possibly 'application/xhtml+xml' in the future |
32 # 'text/html' and possibly 'application/xhtml+xml' in the future |