Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Which project to choose to create 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 former, then configuring run to launch a web browser seems to be difficult.
If I choose the later, I lose support for JavaScript.

So, how do I get the best of both?

like image 871
Hashken Avatar asked May 31 '13 09:05

Hashken


People also ask

Can I create HTML file in Eclipse?

To create a new HTML file: In PHP Explorer view, select the folder into which you would like to create the file and from the Menu Bar go to File | New | HTML Page -or- right-click the folder and select File | New | HTML. Page. The new HTML Page dialog will appear.

How do I start a new JavaScript project in Eclipse?

Your first JavaScript project with EclipseSwitch to the Web perspective and create a new Static Web Project. Select View File New Static Web Project. Create a new HTML file with File New Other Web HTML File.


1 Answers

I have been using the 'static web project' option, and I am including HTML, JavaScript and PHP files in the project.

Make sure you include your .js files in your .html document, otherwise check your eclipse software is up to date to ensure you are getting JavaScript support.

http://wiki.eclipse.org/Eclipse_Project_Update_Sites

sorry would have put this in a comment, but I think I need more reputation.

like image 122
rumplestilskin Avatar answered Sep 24 '22 08:09

rumplestilskin