title: How can I make a php script add a tab to every line of an include file?
body: <p>Within my HTML, I have a php script that includes a file. At that point, the code is indented 2 tabs. What I would like to do is make the php script add two tabs to each line. Here's an example:</p>
  
  <p>Main page:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div&gt;
          &lt;?php include("test.inc"); ?&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>And "test.inc":</p>
  
  <pre><code>&lt;p&gt;This is a test&lt;/p&gt;
  &lt;div&gt;
      &lt;p&gt;This is a nested test&lt;/p&gt;
      &lt;div&gt;
          &lt;p&gt;This is an more nested test&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I get:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div&gt;
  &lt;p&gt;This is a test&lt;/p&gt;
  &lt;div&gt;
      &lt;p&gt;This is a nested test&lt;/p&gt;
      &lt;div&gt;
          &lt;p&gt;This is an more nested test&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>What I want:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div&gt;
       &lt;p&gt;This is a test&lt;/p&gt;
       &lt;div&gt;
              &lt;p&gt;This is a nested test&lt;/p&gt;
              &lt;div&gt;
                  &lt;p&gt;This is an more nested test&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I realise I could just add leading tabs to the include file. However, VS keeps removing those when I format the document.</p>