title: Change textcolor of specific parts in textarea
body: <p>Is there any possibility to change the text-color of some parts in a textarea in HTML?</p>
  
  <p>I like to output some highlighted PHP-Code on my website and give the possibility to select the complete code by one click on this textarea.
  I've already wrote a javascript function to select the complete text. But if I try to put spans around the text, they are printed, too.</p>
  
  <p>Maybe it should work with a div, if there is a way to select the text in a div by one click.</p>