Edgewall Software

Ticket #4581 (closed defect: worksforme)

Opened 21 months ago

Last modified 21 months ago

Trac should obey svn:mime-type property

Reported by: anonymous Owned by: cboos
Priority: normal Milestone:
Component: version control/browser Version: 0.10.3
Severity: normal Keywords: mimeview
Cc:

Description

When using the Source Browser, Trac should use the svn:mime-type property if available to determine the mime-type of a given file before using the file extension.

This will allow developers who work with both Matlab and Objective-C code (we do exist!) to have the appropriate syntax highlighting in the source browser.

Attachments

Change History

Changed 21 months ago by cboos

  • keywords mimeview added

Duly noted. I think this was taken care of in #3332, but I'll keep this ticket open in order to check this specific feature.

If the fix can be backported to 0.10-stable, all the better ;)

Changed 21 months ago by mgood

  • status changed from new to closed
  • resolution set to worksforme
  • milestone 0.10.4 deleted

Trac has used the svn:mime-type property for many versions now. I've just tested with 0.10.3dev using .m files containing matlab and Obj-C samples. The Matlab's mimetype should be set to text/x-matlab and the Obj-C to text/x-objc or not set, since Obj-C is the default for .m files.

If this isn't working check your installation of Enscript and if you need more help please contact the MailingList or IrcChannel.

Add/Change #4581 (Trac should obey svn:mime-type property)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.