CopySourceAsHTML
A colleague of mine, Nick Francis, recommended a handy utility to simplify the process of taking source code from Visual Studio and including it in a blog.
For those of you who haven’t tried to do this you’ll be surprised to find that Visual Studio doesn’t provide HTML on the clipboard but instead gives you either RTF or plain text meaning that Visual Studio’s colour highlighting is lost in translation.
CopySourceAsHTML is a Visual Studio add-in which provides a Copy as HTML command which can be assigned to a toolbar or menu item and enables you to paste beautifully formatted HTML source code directly into you favourite HTML editor.
CopySourceAsHTML can be downloaded from Colin Collers blog at the following location:
http://www.jtleigh.com/people/colin/blog/archives/2004/11/copysourceashtm_2.html
Thanks also go to Colin for include an extra feature at my request to remove the indentation before the source you are copying resulting in it being flush against the left border. You are a "top chap".