title: How do I tell Eclipse to validate HTML files as PHP?
body: <p>I have just started using Eclipse PDT, and I have a similar problem to that which is described in <a href="https://stackoverflow.com/questions/3791690/how-do-i-suppress-warnings-in-eclipse-for-php">How do I suppress warnings in Eclipse for PHP?</a></p>
  
  <p>I have just pointed Eclipse to look at a project that was built with a different IDE. In that project there are many HTML files that are parsed as PHP by Apache. </p>
  
  <p>I am getting many Eclipse validation <em>errors</em> showing up in my <em>Problems Window</em>. </p>
  
  <p>However, I suspect that the only reason why Eclipse thinks that they are errors is because it is thinking that those files are HTML. They do have the .html extension after all. Bless it.</p>
  
  <p>I am reluctant to change the validation settings to <a href="https://stackoverflow.com/a/6236155/205814">suppress the errors</a>, because it seems like it is not really tackling the issue, but just putting a plaster over it. </p>
  
  <p>I have already <a href="https://stackoverflow.com/questions/1959606/making-eclipse-view-different-file-extensions-as-php">followed the suggestion here</a> and drilled down to General -> Editors -> File Associations and associated PHP editor to be the default editor associated with .htm and .html file extensions. (And then restarted Eclipse). But, that has had no effect.</p>
  
  <p>So I'd appreciate it if someone could let me know how to tell Eclipse to <em>validate</em> .htm files as PHP.</p>
  
  <p>Also, just for interest, which piece of the Eclipse framework is responsible doing the actual validation?</p>