Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#4832 closed enhancement (fixed)

C# Syntax Highlighting

Reported by: anonymous Owned by: Christian Boos
Priority: low Milestone: 0.11
Component: version control/browser Version: devel
Severity: trivial Keywords: mimeview csharp
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

Trac is moving towards using Pygments as the default highlighter with .11 and Pygments natively supports C# (unlike SilverCity and Enscript). Adding out of box support to Trac for C# highlighting is as simple as adding:

'text/x-csharp':          ['cs'],

to KNOWN_MIME_TYPES in trac/mimeview/api.py. If there's no other considerations, I think this would be an excellent enhancement to the "out of box" experience of Trac (rather than adding the code whenever I move to a newer .11dev release).

Attachments (0)

Change History (4)

comment:1 by Christopher Lenz, 17 years ago

Description: modified (diff)

(fixup description)

comment:2 by Christian Boos, 17 years ago

Keywords: mimeview csharp added
Milestone: 0.11
Priority: normallow

Besides the fact we didn't have a highlighter which supported C#, we also used to have a conflict between ClearSilver .cs files and C# .cs files. Now I guess we don't care so much anymore about the first use case ;-)

comment:3 by Christian Boos, 17 years ago

Milestone: 0.110.12
Resolution: fixed
Status: newclosed

Fixed in r5234.

comment:4 by osimons <simon-code@…>, 17 years ago

Milestone: 0.120.11

Assuming that the milestone should have stayed at 0.11 as that is where the enhancement will first appear? Moving it - correct me if I'm wrong.

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.