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/

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

priya said:

to design a newspaper and magazine portal

# November 3, 2009 12:31 AM

Darryl Einspahr said:

I copied the adsense code and try to post it in my website, by clicking on Source under the View header

but I can't any line available to allow "Paste" so I can't paste it. When I right click on the source page

I only get "Copy", not "Paste"  Do you know how I can paste my code?

# October 8, 2010 1:05 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)