Edgewall Software
Modify

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#9398 closed task (fixed)

Use of svn:mime-type: text/x-trac-wiki not documented.

Reported by: mpotter@… Owned by: Christian Boos
Priority: normal Milestone: 0.12.3
Component: rendering Version: 0.11.6
Severity: normal Keywords: bitesized
Cc: mpotter@…, Thijs Triemstra Branch:
Release Notes:
API Changes:
Internal Changes:

Description

One can set the svn:mime-type property on a file and have the file syntax color high lighted in the Trac source browser (docs), or for a value of x-rst have the browser render the file differently (docs, example). One can also set it to x-trac-wiki and have the file rendered as interpreted as Trac Wiki markup, but I could not find this documented anywhere.

This feature is in 0.11.6, presumably even earlier.

I would think it should be mentioned on TracSyntaxColoring and/or TracBrowser, or on a new page similar to WikiRestructuredText.

Question: Are there any other mime-types that are rendered differently in the source browser, as opposed to just syntax-colored, besides x-rst?

Attachments (0)

Change History (9)

in reply to:  description comment:1 by Remy Blank, 14 years ago

Keywords: bitesized added
Milestone: unscheduled

Replying to mpotter@…:

I would think it should be mentioned on TracSyntaxColoring and/or TracBrowser, or on a new page similar to WikiRestructuredText.

Feel free to edit the relevant pages as you see fit.

Question: Are there any other mime-types that are rendered differently in the source browser, as opposed to just syntax-colored, besides x-rst?

Not in core. However, plugins are free to define renderers for any MIME types. Here's the converter for x-trac-wiki, as an example.

comment:2 by Thijs Triemstra <lists@…>, 13 years ago

Cc: lists@… added

comment:3 by Thijs Triemstra <lists@…>, 13 years ago

Milestone: unschedulednext-minor-0.12.x

comment:4 by Thijs Triemstra, 13 years ago

Cc: Thijs Triemstra added; lists@… removed
Owner: set to Thijs Triemstra
Status: newassigned

comment:5 by Christian Boos, 13 years ago

Milestone: next-minor-0.12.x0.12.3
Resolution: fixed
Status: assignedclosed

Grabbing it from you, thijs ;-)

Feel free to add pointers to TracSyntaxColoring#KnownMIMETypes in places you find relevant.

comment:6 by Christian Boos, 13 years ago

Mark, don't hesitate to fix my English (TracSyntaxColoring@50) ;-)

in reply to:  5 comment:7 by Thijs Triemstra, 13 years ago

Replying to cboos:

Grabbing it from you, thijs ;-)

No problem :)

Feel free to add pointers to TracSyntaxColoring#KnownMIMETypes in places you find relevant.

It should probably be more emphasised that SilverCity support has been dropped since 0.13.

comment:8 by Christian Boos, 13 years ago

Really? No, it's not. See [10333], it's just not active by default anymore, but you can still use it.

comment:9 by Thijs Triemstra, 13 years ago

Owner: changed from Thijs Triemstra to Christian Boos

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.