title: Copy of "Format Document" function in Visual Studio?
body: <p>I am looking for an app that can do what the "Format Document" function does in Visual Studio. Something really stupid (maybe even an add-on to a normal text editor) that will basically turn this:</p>
  
  <pre><code>&lt;div&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;?php echo 'earth'; ?&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
  </code></pre>
  
  <p>into this:</p>
  
  <pre><code>&lt;div&gt;
    &lt;table&gt;
      &lt;tr&gt;
        &lt;td&gt;
          &lt;?php echo 'earth'; ?&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>