title: Get PHP Eclipse to run error checking on different file-types
body: <p>In my project I have a series of <code>*.tpl</code> files that I would like <code>Eclipse</code> to interpret as PHP code.  I have managed to get syntax highlighting to work properly for these files by adding a <code>*.tpl</code> entry in <code>Preferences -&gt; General -&gt; Editors -&gt; Content Types</code>.  However this does not seem to also enable syntax error checking / validation.</p>
  
  <p>So to be clear, I would like <code>Eclipse</code> to show me per-line errors in the editor and also indicate any errors/warnings on the files in the PHP Explorer - for files with a <code>.tpl</code> extension.  Currently neither is happening.</p>
  
  <p>I have tried also adding <code>*.tpl</code> to <code>Preferences -&gt; General -&gt; Editors -&gt; File Associations</code>.  I have tried pressing <code>F5</code> in various relevant places, and have tried restarting <code>Eclipse</code>.  The folder with the <code>*.tpl</code> files is a subdirectory of a source folder.  Other subdirectories of this source folder are working correctly (although they have <code>.php</code> files).  I don't know what else to do.  Please help!</p>
  
  <p>Thanks!</p>