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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With