views:

20

answers:

1

I just installed eclipse and started working on an existing project. Thing is, none of my code has syntax highlighting. The file name convention is name.class.php and name.html.php

Any ideas?

+1  A: 

Do you have the Eclipse PDT (PHP Development Tools) installed alongside Eclipse? The standard install will not support PHP highlighting.

There is no need to uninstall your current version of Eclipse. If you want the PDT, just follow the instructions at this link (assuming you are using Eclipse 3.6). If you follow those instructions, you will download all the necessary "stuff" to use the PDT. If you have a different version of Eclipse, other instructions are on that same site.

JasCav
Do I have to uninstall my current setup or is there just and add-on that I can use?
Citizen
@Citizen - No need to uninstall. I updated my answer which links to the way to install PDT from the Eclipse Update site. Hope that helps!
JasCav
Thanks, that worked perfectly :)
Citizen