On Wednesday, September 28, 2016 at 2:08:06 PM UTC+1, Emmanuel Blot wrote:
>
> Hi,
>
> Is there a way to obtain the list of supported lexers in Trac syntax
> coloring based on Pygments, and which lexer name in {{{#! … }}} block
> to use to trigger the proper rendering?
>
> For example, pygments doc states that GPB (protocol buffer) is
> supported since version 1.4. My current setup (Trac 1.2rc1, Pygments
> 2.1.3) seems to recognize neither #!proto nor #!protobuf lexer names
> (http://pygments.org/docs/lexers#pygments.lexers.dsls.ProtoBufLexer)
>
> Adding ‘proto’ to [mimeviewer] / mime_map makes Trac to accept the
> ‘proto’ lexer name, but not to make it rendered as expected.
>
> I did not find help on this topic within the official documentation,
> but I may have missed the proper doc.
>
> Thanks,
> Manu
>
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.
- Ryan
--
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.