title: How does Copy Paste of formatted text work?
body: <p>I'm confused about what implements the functionality of copy and paste. This is exactly what I'm confused with:</p>
  
  <p>When I copy formatted text from MS Word (which uses a different markup language than HTML) and paste into an RTF editor in a web browser like gmail or <a href="http://www.freerichtexteditor.com/index.php?inc=demo/index" rel="noreferrer">http://www.freerichtexteditor.com/index.php?inc=demo/index</a> the formatting is preserved but now the markup is converted into HTML. How did this happen? What took care of the conversion?</p>
  
  <p>And if I had pasted this text into some other application, it will be converted into that format. If I copied some html page and pasted it in word then there will a markup conversion from HTML to word. Again, how?</p>
  
  <p>Then if I paste this copied formatted text into a text editor like Notepad then all the formatting is lost and markup is stripped off. Which application stripped the markup and converted it to plain text?</p>
  
  <p>When I copy formatted text, what exactly is copied into the clipboard? I 'm a .NET C# programmer. How would I program this?</p>