Handy Copy Source as HTML -add-in for the Visual Studio 2005 / 2008

While checking out some of my I RSS feeds this morning, I found this useful add-in for the Visual Studio: Copy Source as HTML. The post by Guy Burnstein contains links to the original 2005-version and the update he made for the 2008-version of the Visual Studio.

This really helps my blogging as lately I have avoided pasting code samples since formatting is too much trouble.

Granted, there are similar tools already, like the add-in for the Windows Live Writer, but it has never worked well for me as there is no control for font size, indentation etc. In addition, the fixed-layout of this WordPress.com -template isn’t friendly for wide lines.

Here is a capture of the optional dialog that gives great control for the resulting HTML and CSS:

CopyAsHTML

And here is an actual sample from the add-in with above settings:

   25 public string Description
   26 {
   27     get { return _description; }
   28     set { _description = value; }
   29 }

One Response to “Handy Copy Source as HTML -add-in for the Visual Studio 2005 / 2008”

  1. Broxx Says:

    Welcome friends! ,

Leave a Reply