Edgewall Software
Modify

Opened 16 years ago

Closed 8 years ago

#8104 closed enhancement (duplicate)

Mimetypes() macro listing what is supported and the association to file suffixes

Reported by: Andrey.Regentov@… Owned by:
Priority: normal Milestone:
Component: version control/browser Version: 0.11.3
Severity: normal Keywords: coloring, charset, mime-type
Cc: Thijs Triemstra Branch:
Release Notes:
API Changes:
Internal Changes:

Description

As stated at the end of TracBrowser page, I can specify svn:mime-type property to contain charset. Suppose I have myfile.cpp in non-default charset, without svn:mime-type property. I view it in TracBrowser and get fine coloring but ugly chars (I guess it's because of "cpp" file extension)

When I specify svn:mime-type property, my client (TortoiseSVN) forces me to specify "/" in it (it cannot be just "charset=xxx"). So I specify "text/html;charset=cp1251". View in TracBrowser and get no coloring but correct chars.

I want to get fine coloring and correct chars.

There is no documentation on what mime-type should be to specify C coloring in TracBrowser.

Attachments (0)

Change History (8)

comment:1 by Christian Boos, 16 years ago

Milestone: 0.13

Try text/x-c++src, the list is found here: source:trunk/trac/mimeview/api.py@7900#L308

But yes, it's not possible to find out yet without looking at the code, or guessing. Maybe we should have a [[Mimetypes()]] macro listing what is supported and the association to file suffixes.

comment:2 by Andrey.Regentov@…, 16 years ago

Thank you. Yes, I found it too. text/x-c++src; charset=cp1251 or text/x-c++hdr; charset=cp1251. So let's consider this ticket as a documentation request. It can be [[Mimetypes()]] macro or just MimeTypes page in a fresh Trac installation. I believe this info should not be hidden so deep as now.

in reply to:  1 ; comment:3 by Emmanuel Blot, 16 years ago

Replying to cboos:

But yes, it's not possible to find out yet without looking at the code, or guessing. Maybe we should have a [[Mimetypes()]] macro listing what is supported and the association to file suffixes.

Another missing doc is the svn property to assign to a file so that Trac accepts it as a Wiki source.

comment:4 by Thijs Triemstra, 14 years ago

Cc: Thijs Triemstra added
Summary: Cannot specify C++ coloring AND custom charsetMimetypes() macro listing what is supported and the association to file suffixes
Type: defectenhancement

Renaming ticket.

in reply to:  3 comment:5 by Thijs Triemstra, 14 years ago

Replying to eblot:

Another missing doc is the svn property to assign to a file so that Trac accepts it as a Wiki source.

Is there a ticket for this?

comment:6 by Thijs Triemstra, 14 years ago

Also see #4080.

comment:7 by Peter Suter, 8 years ago

Duplicate of #9097? We have [[KnownMimeTypes]] since r9305.

comment:8 by Ryan J Ollos, 8 years ago

Milestone: next-major-releases
Resolution: duplicate
Status: newclosed

Agreed that this is a duplicate.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.