Comment #1 on issue 2104 by provide a way to map file extensions to syntax highlighting

I hacked rng support with this nasty patch on reviewboard/diffviewer/ :

     from pygments.lexers import XmlLexer
<         lexer = get_lexer_for_filename(filename, stripnl=False,
         if filename.endswith(".rng"):
              lexer = XmlLexer(stripnl=False, encoding='utf-8')
             lexer = get_lexer_for_filename(filename, stripnl=False,

But for real usability, there need be storage for custom pairs - filepattern x lexer..

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to