I built a Windows Forms tool using to highlight a piece of code and then copy the highlighted code onto
clipboard with both
RTF and plain text format. When I paste the copied code in
Google Docs, it will copy with color. In notepad it should copy as plain text. This had been working until yesterday. Suddenly all text editors only paste plain text, not formatted
RTF content anymore. But if I don’t copy plain text format, things will be a bit better,
WordPad can paste highlighted code just fine. Of course, pasting doesn’t work in notepad anymore.
My question is why is this behavior change suddenly? I own another laptop, same thing happened. Restart machine doesn’t help.