title: Use HTML Tidy to just indent HTML code?
body: <p>Is it possible to use HTML Tidy to just indent HTML code?</p>
  
  <p><strong>Sample Code</strong></p>
  
  <pre><code>&lt;form action="?" method="get" accept-charset="utf-8"&gt;
  
  &lt;ul&gt;
  &lt;li&gt;
  &lt;label class="screenReader" for="q"&gt;Keywords&lt;/label&gt;&lt;input type="text" name="q" value="" id="q" /&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;input class="submit" type="submit" value="Search" /&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Desired Result</strong></p>
  
  <pre><code>&lt;form action="?" method="get" accept-charset="utf-8"&gt;
      &lt;ul&gt;
          &lt;li&gt;
          &lt;label class="screenReader" for="q"&gt;Keywords&lt;/label&gt;&lt;input type="text" name="q" value="" id="q"/&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;input class="submit" type="submit" value="Search"/&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If I run it with the standard command, <code>tidy -f errs.txt -m index.html</code> then I get this</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta name="generator" content=
  "HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 15.3.6), see www.w3.org"&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action="?" method="get" accept-charset="utf-8"&gt;
  &lt;ul&gt;
  &lt;li&gt;&lt;label class="screenReader" for=
  "q"&gt;Keywords&lt;/label&gt;&lt;input type="text" name="q" value="" id=
  "q"&gt;&lt;/li&gt;
  &lt;li&gt;&lt;input class="submit" type="submit" value="Search"&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>How can I omit all the extra stuff and actually get it to indent the code?</strong></p>
  
  <p>Forgive me if that's not a feature that it's supposed to support, what library / tool am I looking for?</p>