<charliedigital /> Programming, Politics, and uhh…pineapples

30Dec/090

C# and ASP.NET Syntax Highlighting in Trac

Well, spent the good amount of time trying to figure this out. See the configuration info below from my trac.ini file.

[mimeviewer]
max_preview_size = 262144
mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb,
php_path = php
pygments_default_style = trac
pygments_modes = text/x-csharp:csharp:7,text/plain:aspx-cs:7
tab_width = 4
treat_as_binary = application/octet-stream,application/pdf,application/postscript,application/rtf

Oh yeah, it helps if you actually install Pygments, too.

» Share
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn

About Charles Chen

I'm a senior consultant with Paragon Computer Professionals. In a previous life, I was the lead developer at a startup building what became CSC's FirstPoint.
Filed under: Dev, Self Note Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(All comments are moderated)

No trackbacks yet.