Search code examples
pythonsyntaxtrac

Is there a wiki processor for Trac to format and colour Python tracebacks?


Understandably many of the tickets we file in Trac contain tracebacks. It would be excellent if these were nicely formatted and syntax highlighted.

I've conducted a cursory Google search for a Python traceback wiki processor and have not found any quick hits.

I'm happy to roll my own if anyone can recommend a traceback formatter (stand alone or embedded in an open source project) that outputs HTML/reStructuredText/etc.


Solution

  • Pygments has support for syntax-coloring Python tracebacks, and there's a trac plugin, but the wiki page claims Trac 0.11 supports Pygments natively.