thdoan
thdoan

Reputation: 19127

No JavaScript syntax highlighting in Eclipse 2020-09

I just upgraded to Eclipse 2020-09 (4.17.0) from Eclipse Luna. After installing, I installed Eclipse Web Developer Tools 3.19 from the Marketplace, then restarted Eclipse. When I open a .js file, there is no syntax highlighting. It was fine out of the box with Luna, so is there anything extra that I need to configure in 2020-09? File associations for *.js shows this:

enter image description here

Upvotes: 1

Views: 1183

Answers (2)

howlger
howlger

Reputation: 34305

It seems JavaScript files (*.js) have been associated with the plain text editor instead of the Generic Text Editor by mistake (please make sure it has been reported to Eclipse).

Right-click the file and choose Open With > Generic Text Editor.

Or better, associate all *.js files with the Generic Text Editor by right-click a *.js file, choose Open With > Other..., select the Generic Text Editor in the list and tick the Use it for all '.js' files* checkbox at the bottom (as shown in my video here).

Upvotes: 2

nitind
nitind

Reputation: 20033

Yes, you need to install the Wild Web Developer feature so that it provides that functionality through the Generic Text Editor.

Upvotes: 1

Related Questions