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
 Feature Requests
 Copy syntax colored text to clipboard
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Perry
Junior Member

China
10 Posts

Posted - Jul 10 2004 :  11:05:40 AM  Show Profile
In VS .net, when copying text to clipboard and then copy it to word processors such as MS Word, the syntax coloring information is also copyed. In another word, the text copyed to Word is also colored. But the text colored by Enhance Syntax Coloring of VA is not copyed correctly with the coloring information. Is it possible to keep them with the same color in Word as in text editor window in VS .net?

And in VS 6, it is possible to copy text in RTF format with the help of VA, and the coloring information is OK. But the font information is not copyed correctly. So the font after copying is quite different from the one shown in the text editor window of VS 6.

-++?+?+?+?+?+?-? +?+?+?-?+?+++?+? ...

support
Whole Tomato Software

5566 Posts

Posted - Jul 10 2004 :  12:24:58 PM  Show Profile
Your assessment about copying in VS.NET is correct. VA X puts RTF in the clipboard for only VC++ 6.0.

http://www.wholetomato.com/products/features/rtf.html?more=yes

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=1149

Something tells us we already visited the issue about copying font with RTF. Not sure the reason we do not. We will consider again.

Whole Tomato Software, Inc.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 11 2004 :  10:42:40 PM  Show Profile
quote:
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=1149

I would be surprised if Perry has access to the private forums.

Joe Pizzi
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 11 2004 :  11:33:20 PM  Show Profile
Good point about 1149 being in the private forum. Here is the relevant text:

VA sniffs the clipboard after MS has copied to it. For VC++ 6.0, we see only text in the clipboard. We parse the code in the clipboard and replace it with RTF. No problem. Similar setup for printing. The only problem we have is we lose context of code snippets, hence coloring can be off.

With VS.NET, MS puts HTML in the clipboard. We need to parse it, then the code embedded in it, and put either RTF or HTML back into the clipboard. The task is not impossible but bigger than in is VC++ 6.0. We just haven't gotten to it. Hence, when you copy or print, you see only the VS.NET colors, in HTML, in the clipboard or on your paper.

Whole Tomato Software, Inc.
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Jul 12 2004 :  02:12:36 AM  Show Profile
Any chance that this feature (copy VAX-enhanced Colored Sourcecode into clipboard) will be implemented into VAX for VS .NET?

You don't need to say when, just if it is planned...


Edited by - WannabeeDeveloper on Jul 12 2004 02:13:10 AM
Go to Top of Page

Perry
Junior Member

China
10 Posts

Posted - Jul 12 2004 :  09:16:11 AM  Show Profile
Thanks.

And what about the font in VS 6?
In fact, the font in the VS6 edit window is that such as Fixedsys or Terminal, but after copying to MS Word, the font is the default font in Word, such as Times New Roman. It seems that what VA does is monitoring the clipboard and color the text in it. Hence maybe it is possible to read the IDE settings to get the font name and size of the edit window and then make the text in the clipboard the same font. It would be quite convenient if it is so.

-++?+?+?+?+?+?-? +?+?+?-?+?+++?+? ...
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 12 2004 :  2:04:08 PM  Show Profile
No chance for enhanced-color copying in VS.NET any time soon. Nowhere near the short list.

case=170

We will check into copying font to the clipboard for VC++ 6.0.

case=171

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000