Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Copy Syntax Highlighting to Clipboard as HTML too

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
adish Posted - Dec 02 2014 : 08:35:46 AM
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
6   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Dec 03 2014 : 2:48:13 PM
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.
feline Posted - Dec 03 2014 : 2:28:55 PM
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.
adish Posted - Dec 03 2014 : 1:01:34 PM
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.

feline Posted - Dec 03 2014 : 12:06:30 AM
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.
adish Posted - Dec 02 2014 : 3:21:13 PM
That was just the link. Although I miss VC6, I haven't used it in years :-)
I use e.g. VS2012
feline Posted - Dec 02 2014 : 1:48:05 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000