Best would be if it performs the highlighting exactly as it is in Visual Studio.
If you're using Visual Studio, you can try the Copy Source as HTML plugin.
An non-Visual Studio alternative would be SyntaxHighlighter (more info here)