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: | 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)
follow-up: 3 comment:1 by , 16 years ago
Milestone: | → 0.13 |
---|
comment:2 by , 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.
follow-up: 5 comment:3 by , 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 , 14 years ago
Cc: | added |
---|---|
Summary: | Cannot specify C++ coloring AND custom charset → Mimetypes() macro listing what is supported and the association to file suffixes |
Type: | defect → enhancement |
Renaming ticket.
comment:5 by , 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:8 by , 8 years ago
Milestone: | next-major-releases |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Agreed that this is a duplicate.
Try
text/x-c++src
, the list is found here: source:trunk/trac/mimeview/api.py@7900#L308But 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.