Copy source code as HTML add-in for VS2010?

I could not find such an add-on for VS2010, I found it only for earlier versions.

Does anyone know where I can find a newer version?

+3
source share
4 answers

Looks like Code4Blog will do what you are looking for. I just tried it and it seems very good!


Personally, if this is an option, I highly recommend that you go with SyntaxHighlighter through the Html created by these or other similar extensions, because it keeps the source code easier and more convenient for copy / paste.

+3
source

Visual Studio, ( ). ​​

+6

You can install the CopySourceAsHtml VS2008 version (from here ) and then manually edit the file CopySourceAsHtml.AddInlocated in C:\Users\<username>\Documents\Visual Studio 2010\Addins, so that both elements are version 10.0 :

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Extensibility xmlns="http://schemas.microsoft.com/AutomationExtensibility">
  <HostApplication>
    <Name>Microsoft Visual Studio Macros</Name>
    <Version>10.0</Version>
  </HostApplication>
  <HostApplication>
    <Name>Microsoft Visual Studio</Name>
    <Version>10.0</Version>
  </HostApplication>
  <Addin>
    <FriendlyName>CopySourceAsHtml</FriendlyName>
    <Description>Adds support to Microsoft Visual Studio 2008 for copying source code, syntax highlighting, and line numbers as HTML.</Description>
    <Assembly>JTLeigh.Tools.Development.CopySourceAsHtml, Version=3.0.3215.1, Culture=neutral, PublicKeyToken=bb2a58bdc03d2e14, processorArchitecture=MSIL</Assembly>
    <FullClassName>JTLeigh.Tools.Development.CopySourceAsHtml.Connect</FullClassName>
    <LoadBehavior>1</LoadBehavior>
    <CommandPreload>0</CommandPreload>
    <CommandLineSafe>0</CommandLineSafe>
  </Addin>
</Extensibility>
+5
source

Remember that if you install CopySourceAsHtml with this hack, it will slow down the startup time a bit. It works, but you can only turn it on when you need it.

+2
source

Source: https://habr.com/ru/post/1743914/


All Articles