I used to have a CopySourceAsHtml visual studio add in to post sharply formatted code to blog. But it produced really dirty html which actually made my
dasBlog unhappy and for some reason it doesn’t work well (or just doesn’t work) in vs2005.
Here’s a
really nice macro on coding horror that works in any visual studio version and creates a much cleaner code. It’s a bit painful to install, but then you can assign a shortcut and forget. Mine is ctrl-c + ctrl-c.
Update: which wasn't a great idea for a hotkey..