Labels: Type-Enhancement Priority-Medium
New issue 2288 by rlo...@gmail.com: Custom syntax highlighting options
*NOTE: If you have a patch, please submit it to
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?
You received this message because you are subscribed to the Google Groups
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at