Just updated Eclipse IDE to the 2025-06 version, and now the syntax hilighting for PHP files seems all wrong.
Javascript and CSS files still display with correct syntax hilighting, but PHP files look like this now: (snipped)
Large sections of code appear to be mistakenly highlighted as strings — it seems like the syntax hilighting engine is just failing to handle apostrophes properly now and treating them all like code even when they're just textual apostrophes within a <p> tag.
Tried installing the PHP Developer's Tools from Eclipse Marketplace and restarted Eclipse, it doesn't seem to have helped.
I've had a cursory look through the settings but there doesn't seem to be any obvious place where an option like this would be found, and when I type "php" into the Preferences menu's filter bar it filters out every setting so the left pane is empty.
Is there a setting for this that someone can point me to?
Or is there some other fix for this?
Incidentally the autocomplete also seems to be nonfunctional now. Ie, before the update when I opened, say, a <div> tag, if I then typed </ it would auto-fill the rest of a </div> tag. It's no longer doing that after the update
UPDATE: Here's a minimal reproducible example:
<div>
<p>Lorem ipsum dolor sit amet. Here's some text with an apostrophe in the sentence Consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p id="another_graf">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Here's another paragraph with an apostrophe in it.</p>
</div>
And here's a screenshot of that example file's display within Eclipse:
Solution found: apparently PHP Development Tools didn't install when I installed it the first time. It did complete the installation that first time, but when I went into the Eclipse Marketplace interface to try disabling PDT for troubleshooting purposes I noticed it wasn't listed in the "Installed" tab.
Had to go through the installation process about 3 times before it actually showed up in the "Installed" tab of Eclipse Marketplace.
Once it showed up as installed I just had to close any open .php files and re-open them. The syntax hilighting looked correct as soon as they were re-opened.