> On Wed, Sep 28, 2016 at 3:16 PM, RjOllos <[email protected]> wrote: > > KnownMimeTypes macro should give the list: > https://trac.edgewall.org/wiki/TracSyntaxColoring#SyntaxColoringSupport > https://trac.edgewall.org/wiki/WikiMacros#KnownMimeTypes-macro > > It seems like proto should be in the list, I haven't looked yet why that's > not the case.
Ok, thanks for the links. pygmentize on the server does pygment a simple protobuf file. I’ve added some traces to trac/mimeview/pygments.py 1. pygments.lexers.get_all_lexers() is used to retrieves _types As protobuf does not have a defined mimetype, it gets filter out. 2. PygmentsRenderer.render() never gets called, even if ‘text/x-proto’ for ‘proto’ type successfully appears in the output of [[KnownMimeTypes]] I have not looked any further for now. Cheers, Manu -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
