title: How to change text color in the JTextArea?
body: <p>I need to know how to do this:</p>
  
  <p>Let's say: I have a code in the <code>JTextArea</code> like this:</p>
  
  <pre><code>LOAD R1, 1
  DEC R1
  STORE M, R1
  ADD R4, R1,8
  </code></pre>
  
  <p>I wanted to change the color of <code>LOAD</code>, <code>DEC</code>, <code>STORE</code> and <code>ADD</code> to color BLUE
  <code>R1</code>, <code>R4</code> to color green
  <code>M</code> to RED
  numbers to ORANGE</p>
  
  <p>How to change the color of this text?
  These text were from notepad or can be directly type to the text area.</p>