3

I had an old version of eclipse - probably 2018-12 - and all was good. Then I upgraded it because it was showing errors for some new syntax.

Now, javascript syntax highlighting and other associated things like automatic indent, brackets assistance etc are working with .js files, but when I write any javascript inside a php or html file using script tags, the code is simply black text.

I read the other questions about this issue, but they are all about it not working at all. It works for me, but only in .js files.

I did try uninstalling wild web developer and installing JSDT from 2020-03, but it was no help. Then I upgraded the JSDT to latest version - still not working. Finally I uninstalled eclipse completely and reinstalled the eclipse for PHP package. It has wild web developer by default. Still the same behaviour.

How can I solve this?

1 Answer 1

3

Install the new "Eclipse Web JavaScript Developer Tools" feature (and the related one for JSPs if you need it) from the 2020-09 prerelease site, https://download.eclipse.org/releases/2020-09/. They were included in the 2020-06 Enterprise Java package, but not completely set up for installing later using the 2020-06 update site. 2020-06 also lost the support for task tags in JavaScript files as Wild Web Developer doesn't support them; it'll be back in the final 2020-09 release.

The Eclipse Web JavaScript Developer Tools and related feature for JSPs

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.