Thanks Georg. For the benefit of others also looking for an short-term solution, here is a crude workaround I have devised which seems to work. Just add the following file as a custom extension in your sphinx source dir:
from pygments.lexers.agile import TclLexer from pygments import token class myTclLexer(TclLexer): name = 'My custom Tcl syntax lexer' aliases = ['mytcl'] def setup(app): # HACK: suppress tcl syntax parsing errors token.Error = token.Other # Add our custom lexer app.add_lexer(myTclLexer.aliases[0], myTclLexer()) It seems that just deriving a custom lexer allows sphinx syntax highlighting to work. The "HACK" monkey patch line then suppresses error highlighting (i.e. the red box in html). You can choose to install this file as a system wide pygments lexer using setuptools if you prefer. -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To view this discussion on the web visit https://groups.google.com/d/msg/sphinx-dev/-/n9C82Fb89oYJ. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.