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.
>
> Any hints?

Try this

{{{
#pycon

>>> for nm, alias, fexts, mtypes in get_all_lexers():
...     if '*.hx' in fexts:
...             print nm
...             print alias
...             print fexts
...             print mtypes
...

>>> # This means that hx is not supported in my machine

>>> for nm, alias, fexts, mtypes in get_all_lexers():
...     if '*.py' in fexts:
...             print nm
...             print alias
...             print fexts
...             print mtypes
...
Python
('python', 'py')
('*.py', '*.pyw', '*.sc', 'SConstruct', 'SConscript')
('text/x-python', 'application/x-python')

>>> # This means that Py is supported in my machine

}}}

If you cant find it then you'll have to write your own (or better :
St. Google ;o).

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