OK seems I had two issues.

First I think that .as and .js files weren't being given the correct
mime type by SVN, probably coming across as text/plain. Setting my
mime_map entry to
mime_map = text/x-actionscript:as,text/x-javascript:js
seems to have fixed that, though I assume there must be some better
way to get the mime type right.

Secondly, TRAC instances created using the older version of TRAC (0.9)
weren't inheriting the global trac.ini configuration so that needed
fixing too.

Turns out I didn't need the pygments_modes parameter at all.

Thanks for your help!

On Feb 3, 7:59 pm, RjOllos <ry...@physiosonics.com> wrote:
> You'll want to make sure that the version of Pygments you are using
> supports Javascript and Actionscipt.  Looks like you need 0.9 or later
> for Actionscript [1].
>
> I'm on Trac 0.11.4 and haven't set the pygments_modes parameter, but
> have highlighting of matlab files working with the following mime_map
> entry: text/matlab:m. Your mime_map entry for actionscript appears to
> be correct according to [2].
>
> [1]http://pygments.org/docs/changelog/
> [2]http://pygments.org/docs/lexers/

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to