On Wed, Sep 28, 2016 at 10:16 PM, RjOllos <[email protected]> wrote:
> On Wednesday, September 28, 2016 at 2:08:06 PM UTC+1, Emmanuel Blot 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.

The lexer of Protocol Buffer has no mimetype in Pygments.
Currently, Trac doesn't use lexers without mimetype.

Workaround is to add pseudo mimetype "text/x-protobuf" to mime_map and
pyments_mode options like this:

[mimeviewer]
mime_map = text/x-protobuf:protobuf, ...
pygments_modes = text/x-protobuf:protobuf:7, ...

After the settings, {{{#!protobuf ... }}} would work.

-- 
Jun Omae <[email protected]> (大前 潤)

-- 
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.

Reply via email to