Can you use highlights on text area contents?

You can't mainly because <textarea> separately tracks its own selection, AFAIK.

There is a proposal to add support for this:

https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/...