On Mon, Jan 11, 2010 at 8:39 PM, kilgore <[email protected]> wrote:
> Hi there
>
> As per Perl conventions, .t files contain application tests. How do I
> tell trac that files with this extension should be treated as perl?
>

There are a few possibilities out there to solve this :

  - If there's already a highlighter then use an option in
    `trac.ini` to bind the mimetype to the filename
  - Else you can write lexical analyzer (e.g. using Pygments) ...
  - If you need further support implement `trac.mimeview.api.IContentConverter`
    and `trac.mimeview.api.IHTMLPreviewRenderer` (the last one will be
deprecated ;o)

PS: The new MIME architecture and API related to
`trac.mimeview.api.IContentConverter` and deprecation of
`trac.mimeview.api.IHTMLPreviewRenderer` has been already implemented
? When will it be released (I mean according to the schedule ;o) ?

-- 
Regards,

Olemis.

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

Featured article:
Better docs in GViz provider reference page  -
http://simelo.hg.sourceforge.net/hgweb/simelo/trac-gviz/rev/0422a489985b
-- 
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