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

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.


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.