E-Mail:
Get our new Windows 7 eBook (PDF) for $7 with 70+ Tips. Download Now!

CopySourceAsHtml

  • No Related Post

Interested in copying source code as HTML? Well for Visual Studio users it can be done. Thanks to a little add on program located here, you can make this happen with a lot less effort that you might think. One the add on is installed, the process for transforming the source code into HTML is actually pretty straight forward.

Brad Abrams, Jay Bazuzi, Roy Osherove, and what seems like the majority of .NET bloggers use Word, Word macros, or Visual Studio macros that use Word in some way to format their code. A few use Jean-Claude Manoli’s CSharpFormat tool. Each solution has drawbacks (opening Word, opening another browser window, copying and pasting, extra steps, terrible HTML, etc), and formatting code is still painful, so I’ve written a simple Visual Studio add-in that allows you to copy source as HTML suitable for pasting into blogs:

What Do You Think?

 
35 queries / 0.233 seconds.