Community
Participate
Working Groups
Build ID: 20100617-1415 Problem: If the file extension is ".html", then when "<?php .... ?>" is placed within a HTML tag, Eclipse PDT shows an error in the code about not being able to find the closing tag. Sample code: <img src="<?php echo DOKU_TPL ?>images/button-chimeric-de.png" border="0" /> Steps to reproduce: 1. Create a .html file in an Eclipse PDT project 2. Paste the sample code in. Notes: It could be argued that since it is a .html file it should not parse PHP, however many FOSS packages contain code with .html extensions that have PHP code in them. Perhaps a feature request to allow selecting which extensions should be parsed as PHP would be more appropriate?
add *.html to php content type through Preferences->General->Content Types expand Text tree in the right half window,then find PHP Content Type,then add *.html to php content type.then close the html files that contain php,then reopen them(it is better to wait for several minutes or restart pdt).
Verified.