2288: Custom syntax highlighting options

rlo***@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 4, 2014
2104
http://reviews.reviewboard.org/


What version are you running?  1.5.5


Describe the enhancement and the motivation for it.
It would be nice there was a way to customize which Pygment lexer was used for certain file types and/or names.  For example our company uses mysql for all of relational databases, our schema files use the ".sql" extension which Pygment automatically chooses the SqlLexer, but we would prefer if it picked the MySqlLexer for all ".sql" files.  If the administrator (or per user possibly) could specify a file pattern and an associated Pygment lexer name ('mysql' in this case) which could override the default mapping of Pygment it would be very helpful.


What operating system are you using? What browser?
Linux, Firefox
david
#1 david
  • +Component-DiffViewer