title: Highlight text inside textarea like Facebook does
body: <p>I try to achieve something like the Facebook does when you type @&lt;NAME_OF_A_FRIEND&gt; in a reply. After you choose a friend, the name of that friend is highlighted with a blueish background, so you know it's a separate entity in that text.</p>
  
  <p>I've "inspect element"-ed that textarea and there is no div placed on top of the textarea.</p>
  
  <p>Can anyone give me a clue about how that is done ?</p>
  
  <p><img src="https://i.stack.imgur.com/g7DNX.png" alt="enter image description here"></p>