Edgewall Software

Opened 15 years ago

Closed 15 years ago

#4581 closed defect (worksforme)

Trac should obey svn:mime-type property

Reported by: anonymous Owned by: Christian Boos
Priority: normal Milestone:
Component: version control/browser Version: 0.10.3
Severity: normal Keywords: mimeview
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


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 (0)

Change History (2)

comment:1 by Christian Boos, 15 years ago

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

comment:2 by Matthew Good, 15 years ago

Milestone: 0.10.4
Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.