Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » Eclipse won't syntax highlight JavaScript files
Eclipse won't syntax highlight JavaScript files [message #1860334] Sun, 30 July 2023 06:32 Go to next message
Will Pittenger is currently offline Will PittengerFriend
Messages: 9
Registered: July 2022
Location: Peoria, IL
Junior Member
I installed 2023-09 on Windows 11 Pro 64-bit Edition Version 22H2 OS build 22621.2070 Windows Feature Experience Pack 1000.22659.1000.0 using the installer at https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2023-06/R/eclipse-inst-jre-win64.exe, but selected the 2023-09 build. I went with Eclipse Platform as I need Java at times and local JavaScript at other times. Those languages now seem to be installed, but syntax highlighting for the JS isn't working. It's like Eclipse doesn't know the file is a JavaScript file. The Web Tools perspective is selected.

What's wrong?


Will Pittenger
Re: Eclipse won't syntax highlight JavaScript files [message #1860423 is a reply to message #1860334] Fri, 04 August 2023 00:16 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4439
Registered: July 2009
Senior Member

Did you install Wild Web Developer? JSDT no longer provides an editor for standalone JavaScript files.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse won't syntax highlight JavaScript files [message #1860425 is a reply to message #1860423] Fri, 04 August 2023 01:48 Go to previous messageGo to next message
Will Pittenger is currently offline Will PittengerFriend
Messages: 9
Registered: July 2022
Location: Peoria, IL
Junior Member
Ah. Thanks. That did it.

Will Pittenger
Re: Eclipse won't syntax highlight JavaScript files [message #1863479 is a reply to message #1860425] Mon, 05 February 2024 01:10 Go to previous messageGo to next message
Mark Bratcher is currently offline Mark BratcherFriend
Messages: 6
Registered: September 2021
Junior Member
I installed Wild Web Developer plugin and my javascript files still do not syntax highlight. I'm running Eclipse ver 2023-09 (4.29.0). I've tried several different things and can't get javascript to highlight.

[Updated on: Mon, 05 February 2024 01:33]

Report message to a moderator

Re: Eclipse won't syntax highlight JavaScript files [message #1863689 is a reply to message #1863479] Wed, 21 February 2024 11:22 Go to previous message
Eclipse UserFriend

It seems there might be a discrepancy between your selected installer and actual installation. While you chose the 2023-09 build, the link directs to a 2023-06 installer. This could cause missing components for JavaScript syntax highlighting.

Here's what you can do:

Verify Installation: Double-check your Eclipse installation directory and confirm if it includes the "webtools" and "javascript" folders under "plugins". If missing, you'll need to reinstall with the correct installer, available at: [invalid URL removed]

Check File Associations: Ensure .js files are associated with Eclipse's JavaScript editor. Right-click a .js file, choose "Open with," and select the "JS Editor" option.

Enable Web Tools perspective: Go to "Window" -> "Open Perspective" and choose "Web Tools."

Restart Eclipse: Sometimes a restart can resolve settings glitches.

If these steps don't work, consult the Eclipse forum or online resources for further troubleshooting based on your specific error messages.

Remember, downloading the correct installer based on your desired build date is crucial for proper functionality.
Previous Topic:Wrong shortcut key
Next Topic:Filter in-memory validator errors with ResourceChangeListener
Goto Forum:
  


Current Time: Mon May 06 09:49:54 GMT 2024

Powered by FUDForum. Page generated in 0.04016 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top