Copy highlighted text from text (not pdf)

HI Everyone,
Can someone explain to me how to automatically extract highlighted text (not a pdf) to another document. For example, I have a regular text document with a series of rems which I highlight. I would like to automatically transfer those highlights into another document.
Any ideas?
Thanks,
Ferenc