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

  • Home
  • SEARCH
  • 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 8176125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:02:41+00:00 2026-06-06T23:02:41+00:00

I work for a company who’s primary clients still use Internet Explorer 7 (NHS

  • 0

I work for a company who’s primary clients still use Internet Explorer 7 (NHS etc).

In our code we generate snippets of HTML in various places and Eclipse is generating lots of warnings relating to markup that is obsolete in HTML5.

I know that setting a valid doctype of HTML4 fixes the problem on flat html files but as we build the code over several PHP files we can’t set a doctype in the snippets.

Is there a way to change the ‘default’ doctype to HTML4 globally or by project as I do not want to turn off the warnings as that may cause me to miss actual issues.

  • 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-06T23:02:42+00:00Added an answer on June 6, 2026 at 11:02 pm

    Drove me nuts too until I found the answer…

    http://www.eclipse.org/forums/index.php/t/219788/

    Steps:

    1. Select an HTML file in the PHP Explorer. If there are no HTML files, create a new one.
    2. Right-click > Properties > Web Content Settings.
    3. Choose preferred doctype in the Document type list.
    4. Click OK and exit Eclipse.
    5. Open {your_workspace}/{your_project}/.settings/org.eclipse.wst.html.core.prefs with a text editor.
    6. Replace document-type/{your_file_name}=... by document-type/<project>=... (do not modify <project>, paste it as-is)
    7. Start Eclipse.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our company there are many teams who constantly submit build request work items
the company I work for has a web-based user interface which paying clients log
Our company does work environment surveys, and these surveys are filled in online. All
Our company is split into divisions. These divisions work for client companies and are
I work at a company who does 3rd party iOS development for various enterprises.
Background: I work for a small microsoft based web dev company who is slowly
I work at a small company and our production system uses a hand-rolled RESTful
Background: I work for a company who utilizes Sharepoint for Task Management. We develop
I work at company X and we want to engage in a B2B transaction
The company I work for is looking for a reporting solution with the following

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.