I added support for VB.NET to enscript, by way of creating a vb.st
file which defined the 'vb' state for enscript. This works for
enscript, but for trac I needed to make changes to Mimeview.py - look
for the variable MIME_MAP and add a mapping for c#. I added the
following line for VB.NET:

        'vb':'text/x-vb',

Next, I added edited mimeviewers/enscript.py, and added the following
to supported_types:

        (2, 'text/x-vb', 'vb'),

This worked for me with .vb files, so with the appropriate changes
should work for you with c#.

Why enscript and not silvercity? Well, I use enscript for other tasks,
so it made sense to follow that route, although the equivalent for
silvercity does look easier...

Cheers,
Matthew


On 06/03/06, Gustavo Guerra <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I just installed trac 0.94, along with TracEmoticons, TracRepoSearch, 
> TracWebAdmin
> and TracTags on a windows machine with apache 2.2, subversion 1.3.0 and python
> 2.4.
>
> Everyhing seems to be working ok, except for the syntax highlighting. The
> .cs files appear all back and white in the browser.
> I have enscript on path, and have added a csharp.st file, and it's working
> in WebSvn.
> What must I do to activate it in trac?
>
> Best regards,
> Gustavo Guerra
>
>
>
>
> _______________________________________________
> Trac mailing list
> [email protected]
> http://lists.edgewall.com/mailman/listinfo/trac
>
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to