Recent Posts

Tags

News

  • Sentient

    My services as a speaker, consultant, trainer and developer are available through Sentient.

    Sentient is a leading provider of software development, consultancy and training services on the Microsoft platform.

    Please feel free to contact me if you have a question about something posted in my blog.

Community

Email Notifications

Links

Archives

Sentient thoughts about .NET

Jonathan Greensted's .NET weblog

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".

Comments

TrackBack said:

^_~,pretty good!csharpsseeoo
# May 17, 2005 10:02 PM

TrackBack said:

CopySourceAsHTMLooeess
# July 17, 2005 2:50 AM

TrackBack said:

CopySourceAsHTMLooeess
# July 31, 2005 10:27 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)