Comment #1 on issue 2104 by [email protected]: provide a way to map file
extensions to syntax highlighting
http://code.google.com/p/reviewboard/issues/detail?id=2104
I hacked rng support with this nasty patch on
reviewboard/diffviewer/diffutils.py :
10a11
from pygments.lexers import XmlLexer
501c502,505
< lexer = get_lexer_for_filename(filename, stripnl=False,
---
if filename.endswith(".rng"):
lexer = XmlLexer(stripnl=False, encoding='utf-8')
else:
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reviewboard-issues?hl=en.