in

ASP.NET Weblogs

This Blog

Syndication

News




NOTE: The opinions expressed here are MY OWN and are not necessarily those of my employer, partners, customers, friends, or family. ALL content presented AS-IS, for entertainment purposes only with ABSOLUTLY NO WARRANTY expressed or implied.

Joe On ASP.NET

Copy and Paste Source Code as HTML

copyhtmlsrc

Posting code to your blog - check out these links to a Visual Studio Add-In to let you Cut  and Paste code as HTML.

http://www.jtleigh.com/people/colin/blog/archives/2005/11/copysourceashtm_8.html

http://www.jtleigh.com/people/colin/software/CopySourceAsHtml/

Published Nov 01 2007, 03:19 PM by JoeStagner
Filed under:

Comments

 

rrobbins said:

I use Jeff Atwood's Visual Studio macro. Sometimes I need to document code in a language that Visual Studio does not support so I use Wilco Bau's Syntax Highlighter which I found used by the QuickStarts Source Control Viewer for ASP.NET 2.0. My third choice is Highlight 2.6.2, an obscure open source code highlighter. However, I am out of luck for RPG II because nothing will highlight that miserably cryptic programming language.

November 1, 2007 3:45 PM
 

James said:

What are the advantages to this approach when compared with a javascript colorizer?

November 1, 2007 5:10 PM
 

lkempe said:

I used it in my tool Tech Head Brothers Authoring, www.codeplex.com/THBAuthoring, it is based on RTF that VS 05 put into the clipboard when you make a copy, but it seems that it doesn't work anymore under VS 08 RC.

November 1, 2007 5:35 PM
 

Dave said:

<blockquote>What are the advantages to this approach when compared with a javascript colorizer?</blockquote>

Because you will have viewers with JavaScript disabled (and all RSS readers).  However, there's a fairly good chance none of them will have HTML disabled.

November 1, 2007 6:20 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About JoeStagner

Joe Stagner is a Senior Program Manager in Microsoft Corporation’s Developer Tools and Platform Group and has been with Microsoft since 2001 focusing on highly scalable and performant web application architectures, multiplatform interoperability and software security. Joe brings 30 years technical and business strategy experience to Microsoft which affords him a unique experiential perspective. [ I am NOT able to respond to PMs - please contact me via www.MisfitGeek.com ]