I suspect this is not possible but thought I'd ask just in case.
Say in the syntax editor we have all the coloring going on desired. Is it possible to programmatically copy the selected text that can then be pasted into other richtexteditors keeping the formatting?
Best example of this I can think of is with Microsoft sql management studio - if you copy a query into an email or word it keeps the same coloring and formatting.
It can also be done with the standard winform richtextedit:
Then pasting that into another richtextbox or email or even word, will maintain all the formatting.
I did try the above with GetSelectedText() but that was a no go.