Eclipse Indigo PDT does not underline syntax errors

I installed the Indigo Eclipse SDK and then followed the following instructions to install PDT on it:

This is the original solution posted by ben-k with a link to a section: Eclipse indigo PDT 3.0 gotcha

download "Eclipse Classic" unzip/install to a new folder location (eg c:\eclipse-indigo-win32\ go to help->install new software select Indigo - http://download.eclipse.org/releases/indigo from 

the "Work with" drop-down list, enter "php" in the filter text Select "SDK for PHP Development (PDT) Features" select / next / ok / agree / finish, etc. wait for installation and restart when prompted

to check the installation version - go to help->, then click the "Installation Information" button - find the version next to "PHP Development Tools (PDT)" all in one "SDK v3.0.0" - also check the "Eclipse SDK" should be 3.7.0

make sure that the perspective is selected, - next to the perspective buttons - click the icon with the "+" symbol - select "other" - highlight "PHP" - select "OK, PHP will now be included in the list of open perspectives

But I can’t enable a function that emits a syntax error for a file that I upload to Eclipse without creating a project in it.

Someone tell me?

PS Btw I am a happy Eclipse PDT Helios user and was able to update it without any problems. Error highlighting works great in it.

+6
source share
2 answers

I had the same issue after upgrading Eclipse to Indigo while upgrading Ubuntu.

After installing PDT, all .php source files opened in a text editor (instead of the php editor), which means that no syntax or autocompletion was highlighted (the text was grayed out).

To fix it -

Window β†’ Settings β†’ General β†’ Editor β†’ File Associations

The first text editor was specified in the entry for "* .php".

I deleted the entry for "* .php" and recreated it, phpEditor appears first in the list of editor associations.

+4
source

Verify that your sources are turned ON in the PHP build path (right-click on the project> Properties> Php build path)

+1
source

Source: https://habr.com/ru/post/893129/


All Articles