Eclipse - which project to choose to create an HTML / Javascript project

When I try to create a web page with eclipse, I have two options - - Javascript Project
- Static web project

If I choose the first one, setting up run to launch a web browser seems to be difficult.
If I choose a later version, I will lose JavaScript support.

So how do I get the best of both?

+6
source share
1 answer

I used the โ€œstatic web projectโ€ option and I include HTML, JavaScript and PHP files in it.

Make sure you add .js files to your .html document, otherwise check that your eclipse software has been updated to make sure you get JavaScript support.

http://wiki.eclipse.org/Eclipse_Project_Update_Sites

Sorry, you would put this in a comment, but I think I need more reputation.

+7
source

Source: https://habr.com/ru/post/946248/


All Articles