Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7768925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:02:49+00:00 2026-06-01T16:02:49+00:00

I have just started using Eclipse PDT, and I have a similar problem to

  • 0

I have just started using Eclipse PDT, and I have a similar problem to that which is described in How do I suppress warnings in Eclipse for PHP?

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.

I am getting many Eclipse validation errors showing up in my Problems Window.

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.

I am reluctant to change the validation settings to suppress the errors, because it seems like it is not really tackling the issue, but just putting a plaster over it.

I have already followed the suggestion here 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.

So I’d appreciate it if someone could let me know how to tell Eclipse to validate .htm files as PHP.

Also, just for interest, which piece of the Eclipse framework is responsible doing the actual validation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:02:50+00:00Added an answer on June 1, 2026 at 4:02 pm

    You should go to in your eclipse preferences to General -> Editors -> File Associations as you did and then click on “Content Types”:

    enter image description here

    and add *.htm as PHP Content Type

    enter image description here

    P.S. The method works for Eclipse 3.7.2

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started using php arrays (and php in general) I have a code
I just started using Qt and noticed that all the example class definitions have
I have just started the Hello World App using Blackberry Eclipse Plugin. I have
I have just started learning to write apps for android using Eclipse. Where can
I'm currently working on a school project in Eclipse (We have just started using
i just started using Flash builder 4 and i have a problem. As it
I have just started with java development using Eclipse, when I was debugging this
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have just started using XML as I usually use php but I am
I have just started using Eclipse and Mylyn together, so I'm quite new to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.