Skip to main content



      Home
Home » Newcomers » Newcomers » How to install a JavaScript editor for Eclipse?
How to install a JavaScript editor for Eclipse? [message #1814812] Thu, 19 September 2019 01:43 Go to next message
Eclipse UserFriend
I have a standard Eclipse running on an Ubuntu 14.10:

Eclipse Standard/SDK

Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600
I searched for javascript in the marketplace. But nothing jumped to my eye.
I searched javascript editor eclipse on the web, which gave me JSDT (https://eclipse.org/webtools/jsdt/) But I couldn't find it in the marketplace.
I realised, that JSDT are budled within the WDT (Web Tools Platform; https://eclipse.org/webtools/).
It seems that I'm lacking some basic knowledge about eclipse.

Is it somehow possible to install JSDT without all the other stuff of the WTP?
When I'd like to use WTP, do I need a separate installation of Eclipse? (since WTP is also not in the marketplace)
Is there an JavaScript editor plugin that I can simply add to my existing Eclipse installation?

[Updated on: Fri, 20 September 2019 00:41] by Moderator

Re: How to install a JavaScript editor for Eclipse? [message #1814828 is a reply to message #1814812] Thu, 19 September 2019 06:24 Go to previous messageGo to next message
Eclipse UserFriend
It's found separately in the regular Install New Software dialog, off the Help menu.
Re: How to install a JavaScript editor for Eclipse? [message #1844788 is a reply to message #1814828] Sat, 25 September 2021 02:22 Go to previous message
Eclipse UserFriend
Open Eclipse -> Go to "Help" -> "Install New Software"
Select the repository for your version of Eclipse. I have Juno so I selected http://download.eclipse.org/releases/juno
Expand "Programming Languages" -> Check the box next to "JavaScript Development Tools"
Click "Next" -> "Next" -> Accept the Terms of the License Agreement -> "Finish"
Wait for the software to install, then restart Eclipse (by clicking "Yes" button at pop up window)
Once Eclipse has restarted, open "Window" -> "Preferences" -> Expand "General" and "Editors" -> Click "File Associations" -> Add ".js" to the "File types:" list, if it is not already there
In the same "File Associations" dialog, click "Add" in the "Associated editors:" section
Select "Internal editors" radio at the top
Select "JavaScript Viewer". Click "OK" -> "OK"
To add JavaScript Perspective: (Optional)
10. Go to "Window" -> "Open Perspective" -> "Other..."
11. Select "JavaScript". Click "OK"

To open .html or .js file with highlighted JavaScript syntax:
12. (Optional) Select JavaScript Perspective
13. Browse and Select .html or .js file in Script Explorer in [JavaScript Perspective] (Or Package Explorer [Java Perspective] Or PyDev Package Explorer [PyDev Perspective] Don't matter.)
14. Right-click on .html or .js file -> "Open With" -> "Other..."
15. Select "Internal editors"
16. Select "Java Script Editor". Click "OK" (see JavaScript syntax is now highlighted )

Thanks

[Updated on: Tue, 15 October 2024 10:15] by Moderator

Previous Topic:Why Eclipse Don't Use Existing EOL Format Of Some File?
Next Topic:Exception in thread "main" java.lang.ExceptionInInitializerError
Goto Forum:
  


Current Time: Tue Jul 15 14:11:39 EDT 2025

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

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

Back to the top