Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preserving text color while copy pasting on windows from eclipse to gmail?

When I copy paste from eclipse/RAD to outlook all the text colors and code formatting is preserved just as in RAD 7.5 IDE. But when I copy paste the same to gmail, I am left with no colors. Is this a browser shortcoming or operating systems? I do not know a whole lot about how windows clip board behaves? Any suggestions are greatly appreciated. Thanks !

like image 330
Kalyan Avatar asked Aug 19 '11 21:08

Kalyan


2 Answers

The easiest way is to :

  1. copy your code from eclipse to MS word
  2. copy your code from MS word to gmail

It works for me.

like image 197
Yassin Avatar answered Sep 21 '22 15:09

Yassin


It's not the cleanest way, but I find that if I copy my code from Visual Studio, and paste it into MS Word, then copy it from Word and into Gmail (Chrome) it stays formatted properly. I'm guessing the reason is because Word, upon pasting, is changing the format to HTML, which Chrome can handle just fine.

like image 20
Adam Rackis Avatar answered Sep 23 '22 15:09

Adam Rackis