title: Reading HTML file to view in JEditorPane
body: <p>I have a Java program which prints to a HTML file. Another method reads in this file and prints it to the editor pane.</p>
  
  <p>My problem is that the color orange doesn't work. My code is as follows:</p>
  
  <pre><code>print.println("&lt;html&gt;&lt;p&gt;&lt;br&gt;&lt;font color=\"orange\"&gt;");
  </code></pre>
  
  <p>When I pass this html file into the editor pane all the colors are right. Red, yellow and blue all work but orange doesn't (I have also tried replacing orange with pink etc but no luck). If I change the orange to say blue it works fine. When I open it up as a HTML file on the web the text that I want in orange is in orange and works fine. Help?</p>
  
  <p>Also all the indenting is fine but when it gets near the end, it moves to the right.
  For Example:</p>
  
  <pre><code>abc 0
  bcd 1
  vde 1
  def 2
  ...
  swe 7      
      dfr 8            
                ..................................................... ert 3
  </code></pre>
  
  <p>Where ert 3 is the last string that needs to be printed. But it manages to fit all the text in the box.</p>
  
  <hr>
  
  <p><em>Edit</em>: Thanks for the help for the first part. Any ideas about the bottom part?</p>