title: HEREDOC interfering with code indentation
body: <p>I like the HEREDOC syntax, e.g. for edge cases of generated HTML that are not worth putting into a template. </p>
  
  <p>The only thing that annoys me about it, though, is that the content, and the closing marker of a heredoc string adheres to the first column. This screws up nested code layouts:</p>
  
  <pre><code>class myclass 
   { 
  
      function __construct()
        { 
         $a = some_code();
         $b = some_more_code();
         $x = &lt;&lt;&lt;EOT
  
  line1
  line2
  line3
  line4
  
  EOT;    
  
          $c = even_more_code();
          $b = still_more_code();
          ...
          ...
          ...
  </code></pre>
  
  <p>you see what I mean.</p>
  
  <p>Now this is probably not solvable using normal HEREDOC. Has anybody worked around this? My dream would be to have HEREDOC syntax with automatic indentation. But I guess this is not possible without writing some pre-compiler for the source files.</p>
  
  <p>Am I correct?</p>