Hello !

On Fri, Aug 14, 2009 at 7:04 AM, Jens Peter Secher<[email protected]> wrote:
> 2009/8/13 Olemis Lang <[email protected]>:
>> On Thu, Aug 13, 2009 at 9:56 AM, Jens Peter Secher<[email protected]> wrote:
>>>
>>> I have haXe files (*.hx) in my Subversion repository, and I want Trac
>>> (0.11.1) to use Javascript colourisation for these files.  I have
>>> tried adding "hx" to the javascript line in /etc/mime.types but to no
>>> avail.
>>>
> [...]
>> This means that hx is not supported in my machine
>
> Yes, hence the question.
>
> [...]
>> If you cant find it then you'll have to write your own (or better :
>> St. Google ;o).
>
> But the Javascript lexer would be fine for haXe files.  So is there a
> way to tell either Trac or Pygment to *also* use the Javascript lexer
> for files with extension "hx"?
>

Well, possibly hacking Pygment's JavaScript lexer or maybe using
`mime_map` + `pygments_modes` options in trac.ini . Please read
TracIni wiki page for further details.

PS: BTW, I have experienced some tricky behaviors with Pygments
highlighting support. There are some mime types supported by Pygments
that are rejected with a message like «Cant find processor XXX» (well,
something like that )

But I suppose that's something I'm doing wrong :-/

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

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

Reply via email to