title: How can you highlight multiple sections of text like Facebook's comment field for @ mentions?
body: <p>In Facebooks comment textarea, when you click @ followed by the letters of a friend's name, it places that friends name in the textarea with the name highlighted.  You can continue typing a comment with different @ mentioned names in the textarea, each of which is separately highlighted. </p>
  
  <p>This appears to be an ordinary textarea, so I'm baffled how they are able to select multiple separate sections of text in the color that they do.  </p>
  
  <p>I ran Firebug and looked at the code, and they are not overlapping the text with floating DIV's or anything like that.</p>
  
  <p>Any idea how they are doing this?</p>