On Jan 12, 2:39 am, kilgore <[email protected]> wrote:
> As per Perl conventions, .t files contain application tests. How do I
> tell trac that files with this extension should be treated as perl?

You'd use the "[mimeviewer] mime_map = ..." setting to map file-
types / short-names to mime-types. Below is a few examples for some of
the things I have in my setting, and no doubt you can look at the
pattern and make something that works for your file as well:

[mimeviewer]
mime_map = text/x-actionscript:as, text/x-erlang:erl:hrl, text/x-trac-
wiki:wiki

This mapping also means that the file-endings work as short-names, so
that if you use a processor the file-ending will be an alias for the
type - like:

{{{
#!erl
main() ->
         sos:write("Hello world\n").
}}}



:::simon

https://www.coderesort.com
http://www.ohloh.net/accounts/osimons
-- 
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