Copy selected code in HTML format while preserving syntax highlighting, indentation and background colour. Options: Max Height, Title Block, Alternating Lines, Line Numbers, Wrap Lines, Un-indent, Background Colour, Class Names. Converts RTF, outputted by VS, into HTML.
At first I thought it was losing the line numbers when I copy/paste.
Then I realized my background color is black and the line number are also black (apparently hard-coded). It would be nice if the tool would honor the configuration I have in VS for the color of the line numbers, or at least automatically choose a high-contrast color for the line numbers compared to the background color.
Hi Tim, outstanding tool! I just used it for the first time in my latest blog entry and it is easy and looks great. Since SQL Server Management Studio uses the VS 2010 Shell, is it possible to manually port the add-in for usage there? Any tips on how I could try that out?
I was looking for a plugin to copy code keeping line numbers.
I use a dark theme and my background is black. To make my colors look nice when copying, I would like to set the background to black. However, the line numbers text is black so I can't see them.
Is there a work around for this?
This might be a bit out of scope for the AddIn, but I was wondering if you would be willing to make it copy to plain text, where especially the "Unindent" is very useful, especially if the plain text variant would have tabs replaced with spaces.
To make it work on Visual Studio 2010, go to the installation folder of the addin, usually it will pick your MyDocument folder '.\MyDocument\Visual Studio 2008\Addins', copy the addin to the new Visual Studio folder '.\MyDocument\Visual Studio 2010\Addins'.
Here are the folders and files you need to copy.
After you done with it, you will need to edit this file 'LavernockEnterprises.CopyAsHtml.2008.AddIn' and add Visual Studio to the supported hosts.
Add the following above the existing entry.
<Name>Microsoft Visual Studio</Name>
One request would be to make sure that the HTML you generate is valid. For example, <br> is generated instead of <br/>. This is especially important for XHTML and HTML 5.
Thanks for your time.
Are you planning to support Visual Studio 11 Beta? We really want to start blogging :)
Another feature request: please allow the user to select the font. I'd like to use consolas instead of courier new.
Hi, Just downloaded and tried - just what I was looking for!
Minor problem though, when I paste some c# from VS2008 I get embedded Â characters before every nbsp used for indents? Am I doing something stupid?
Thanks - Ian