title: How can we dynamically change font color in textarea using Angular/jQuery/JavaScript?
body: <p>How can we dynamically change font color in textarea having several colora for different words using Angular/jQuery/JavaScript? Is there any plugin already available for this? Found some of the plugins on Google but they are all for syntax highlighting/coloring. Which takes a specific language and highlights. </p>
  
  <p>I need to pass multiple lists and the text area should change color of matching words from list 1 to blue, list 2 words to green and so on.</p>
  
  <p>Suppose I have two lists of words:</p>
  
  <pre><code>var list1 = ['apple', 'banana'];
  var list2 = ['house', 'apartment'];
  </code></pre>
  
  <p>I would like to have all the words in list1 with one colour and all the words in list2 with another colour. </p>