Opened 19 years ago
Closed 19 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: | |||
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 (0)
Change History (2)
comment:1 by , 19 years ago
| Keywords: | mimeview added |
|---|
comment:2 by , 19 years ago
| Milestone: | 0.10.4 |
|---|---|
| Resolution: | → worksforme |
| Status: | new → closed |
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.



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