Take the 2-minute tour ×

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?


share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
Yes look above! Sorry for the late response. –  einstein Nov 6 '10 at 20:15
oh I used doctype as <!DOCTYPE HTML> which I think is the HTML 5 standard –  einstein Nov 6 '10 at 20:18
Thanks i used the <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">; now and the marks disappeared but does it have any implications on my html code? I don't think I have any html-5 elements but I have som CSS 3. –  einstein Nov 6 '10 at 20:22
I think the html parser in the editor does not support html 5 now, which really is a shame. see this post : superuser.com/questions/142997/enable-html5-tags-on-eclipse –  greg0ire Nov 6 '10 at 22:43

Your Answer


