#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 )
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 , 18 years ago
Description: | modified (diff) |
---|
comment:2 by , 18 years ago
Keywords: | mimeview csharp added |
---|---|
Milestone: | → 0.11 |
Priority: | normal → low |
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 , 18 years ago
Milestone: | 0.11 → 0.12 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in r5234.
comment:4 by , 18 years ago
Milestone: | 0.12 → 0.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.
(fixup description)