hgext/highlight/__init__.py
changeset 16743 38caf405d010
parent 16683 525fdb738975
child 19872 681f7b9213a4
equal deleted inserted replaced
16742:973671fc0804 16743:38caf405d010
    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