views:

406

answers:

2

Best would be if it performs the highlighting exactly as it is in Visual Studio.

+3  A: 

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)

dylantblack
wow, thats a nice alternative!! i will wait a bit if there will be a good suggestion for a proper WP plugin .. otherwise I will accept this as the best answer.
Michal
+1  A: 

Probably SyntaxHighlighter Evolved, which uses a nice JavaScript (SyntaxHighlighter 2.0) library for highlighting, and you can easily add custom styles.

Anteru
i like that plugin but the only thing which makes it a no-go is: "NOTE: One important thing to watch out for is opening triangular bracket <. It must be replaced with an HTML equivalent of < in all cases. Failure to do won't break the page, but might break the source code displayed. " Code normally contains a lot of brackets (<) and i have no time to encode them manually :(
Michal
In this case, you can use the editor for SyntaxHighlighter: http://precode.codeplex.com/
Anteru