I have recently ditch Dreamweaver as my IDE for my web projects and I'm currently using Eclipse. My current web project is written in PHP, but I'm not so familiar with Eclipse yet. I downloaded the Eclipse PDT. which has all the PHP developer plugins. And my first questions when I start a project does it mean I'm creating a root folder? and shall I choose PHP project or static web project? I've choosed the PHP project,but I just need to know that I'm not choosing the wrong one.
And why is it showing an error(an exclamation mark) when I try to add some javascripts to my index.php file?
<script type="text/javascript" src="javascripts/addTools.js"></script>
when I hoover over the exclamation mark I get the following info:
Multipel annotation found at this line: -starttag of element script -undefined attribute name (src) -undefined attribute name (type) -endtag of element script
As far as I know I have used the correct syntax for adding external javascripts to a html. Seems like a bug?
I can still run the website but it is just an annoying moment, pls help me anyone?
REQUESTED SCREEN DUMP:
static web project is for a web project with only html pages. No dynamic pages with php for instance. You choose the good one. The syntax seems correct, could you show us the full code, or even a screenshot of your editor? It seems the editor is not aware about the html dtd.