Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Copy Syntax Highlighting to Clipboard as HTML too
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

adish
New Member

6 Posts

Posted - Dec 02 2014 :  08:35:46 AM  Show Profile  Reply with Quote
Hi,

When I copy a bunch of code, is it possible to have the syntax highlighting (e.g. colors) copied to the clipboard as well?

I can see the color when I paste them into an RTF-enabled application like Word (http://docs.wholetomato.com/default.asp?W218), but not when I paste them into an HTML aware app like GMail.

Thanks,
Adi

Edited by - adish on Dec 02 2014 08:41:02 AM

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 02 2014 :  1:48:05 PM  Show Profile  Reply with Quote
Which IDE are you using? The page you linked to is for VC6. VC6 does not place HTML into the clipboard, and may well not understand HTML coloured code when you come to paste it back into the editor.

zen is the art of being at one with the two'ness
Go to Top of Page

adish
New Member

6 Posts

Posted - Dec 02 2014 :  3:21:13 PM  Show Profile  Reply with Quote
That was just the link. Although I miss VC6, I haven't used it in years :-)
I use e.g. VS2012
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 03 2014 :  12:06:30 AM  Show Profile  Reply with Quote
Which version of VA are you using? I have just tested this here with VS2013, VA 2052 and Gmail in Internet Explorer, and VA colouring is preserved when copying code from the editor.

This should be working in VS2010 and above, in the last few builds.

zen is the art of being at one with the two'ness
Go to Top of Page

adish
New Member

6 Posts

Posted - Dec 03 2014 :  1:01:34 PM  Show Profile  Reply with Quote
Using:
VA_X.dll file version 10.9.2052.0 built 2014.11.05
With VS2010 and VS2013:
Paste is plain text only in Chrome for Mac OSX. Safari on Mac OSX works fine and also Chrome on Win7.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Dec 03 2014 :  2:28:55 PM  Show Profile  Reply with Quote
How are you running Visual Studio on the Mac? Some form of virtual machine software I assume. This adds another layer, something else that might be interfering with the formatting of the text in the clipboard. Since this works in two out of your three cases it sounds like it is working correctly at our end, which is what I am seeing in my tests. This suggests a Chrome for Mac OSX probem, or possibly something to do with how you are hosting the IDE under OSX.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Dec 03 2014 :  2:48:13 PM  Show Profile  Reply with Quote
If the app being pasted into doesn't read RTF, then it won't get color. Seems like this is more of a feature request for HTML clipboard format rather than a bug. There is no option in VA or VS to output HTML to the clipboard.

It looks like the Productivity Power Tools extension in the VS Gallery might support HTML clipboard format output.

Edited by - sean on Dec 03 2014 2:50:55 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000