Eclipse PDT is marking two lines as errors. My website running fine without errors in a browser, but the red “x” in Eclipse is bugging me. Here are the two lines:
<?xml-stylesheet type="text/xsl" media="screen" href="<?php echo HOME ?>css/xsl/template.xsl" ?>
<?xml-stylesheet type="text/css" media="screen" href="<?php echo HOME ?>css/xsl/style.css" ?>
I already have short tags disabled, so I don’t know why it’s still consider an error.
Btw, the error message is:
Processing instruction not closed.
Edit: I changed the two lines to make PHP echo the lines instead. This solves the problem, but I still want to know why this is occurring. I’ll wait a day or two for new answers before selecting a correct answer.
There is a “Use Short Tags” checkbox in the “PHP > PHP Interpreter” section of the Eclipse Settings.