New answer
These days I just use highlightjs which works perfectly well with C#.
Old answer
While I haven't open-sourced it yet, you'd be welcome to the formatter I use for the C# in Depth web site. Give it a try, and let me know if you'd like to use it. (This is no longer available.)