UPDATE: I did not mention it previously, but this also works with RTM.
The tool CopySourceAsHtml (CSAH) is invaluable for any code-oriented blogger.
Thanks a lot to Colin Coller and J.T. Leigh & Associates Inc.!
Currently there is no Visual Studio 2008 version of this great Add-in available to download.
It is very easy though to make it work with VS 2008.
In the Add-in-path of VS 2005
(in Vista it is usually C:\Users\USERNAME\Documents\Visual Studio 2005\Addins)
you will find the following files:
- CopySourceAsHtml.dll
- CopySourceAsHtml.AddIn
- CopySourceAsHtml.dll.config
and possibly: CopySourceAsHtml.pdb :)
- Copy those files to the AddIn-Path of VS 2008
(in Vista it is usually C:\Users\USERNAME\Documents\Visual Studio 2008\Addins) - Open CopySourceAsHtml.AddIn in a text- or XML-editor in the VS 2008 AddIn-folder.
- Change as seen below and save the changed file back into the VS 2008 Add-in folder.
The original file had <Version>8.0</Version> instead.
<?xml version="1.0" encoding="UTF-16" standalone="no"?> <Extensibility xmlns="http://schemas.microsoft.com/AutomationExtensibility"> <HostApplication> <Name>Microsoft Visual Studio Macros</Name> <Version>9.0</Version> </HostApplication> <HostApplication> <Name>Microsoft Visual Studio</Name> <Version>9.0</Version> </HostApplication> <Addin> <FriendlyName>CopySourceAsHtml</FriendlyName> <Description>Adds support to Microsoft Visual Studio 2005 for copying source code, syntax highlighting, and line numbers as HTML.</Description> <Assembly>CopySourceAsHtml.dll</Assembly> <FullClassName>JTLeigh.Tools.CopySourceAsHtml.Connect</FullClassName> <LoadBehavior>1</LoadBehavior> <CommandPreload>0</CommandPreload> <CommandLineSafe>0</CommandLineSafe> </Addin> </Extensibility> |
In Visual Studio 2008 go to Tools/Add-in-Manager:
Activate the AddIn:
Gratulations. Now you can use CopySourceAsHtml with Visual Studio 2008!
Posted
Aug 01 2007, 11:50 PM
by
Andreas Erben