Community
Participate
Working Groups
I have the following issue with CDT 3.1: - Copying a text from a Java file and pasting it in an e-mail in Outlook results in formatted text with a white background - Copying a text from a C/C++ file and pasting it in an e-mail in Outlook results in formatted text with a dark blue background, which renders the text undreadable The first is what I consider correct behaviour, while the second isn't. I suspect that a wrong value is being applied, or is not set, to the data added to the clipboard.
Works for me. Could you give more details about what and how you have done? Note that clipboard copy is different when folding is enabled and the selected text contains a folded region. In this case no colors and styles are copied (this is true for both editors). Does the behaviour depend on the text selection you are copying? Did you paste into an HTML, rich text or plain text e-mail or did you create a new e-mail by pasting directly into Outlook? Are there any settings in your Outlook that might account for the difference?
Seems to happen if you start the selection within a keyword.
I see that the current line highlighting also appears in the e-mail when the selection spans only one line, but it is the usual light blue, rather than a dark blue background. Actually, the text appears exactly as in the editor, including any background highlighting (e.g. search result annotations). Could you provide screenshots of the editor and the e-mail?
Created attachment 52114 [details] Selected text in Eclipse
Created attachment 52115 [details] Text pasted into Outlook
I confirm that the issue is related to single line selects and to keyword based selects as I previously thought. Mulitple lines don't have this issue, so at least there is a workaround. I also noticed that it also affects Java documents in Eclipse 3.2, so it is probably an issue with the base Editor, on which CDT depends. The two attachments show what the issue looks like.
Ok, in this case I'll redirect this to Platform/Text as it seems to happen with any Eclipse text editor.
*** This bug has been marked as a duplicate of 86503 ***