This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In the html context there should be the first item in the code completion <?php ?> tag or <script language="php">. The fix should be easi in the php code completion provider.
Only the <?php ?> tag can be proposed in the code completion list for a "foreign" context (not only the html context should be processed). The <script language="php"> tag should be under recognition for reasons of backward compatibility with old PHP scripts, but it MUST NOT be proposed for a new script. Because: 1. The PHP manual says (see http://us.php.net/manual/en/language.basic-syntax.php ) : "... example one is the most commonly used, and recommended, of the two.", i.e. the <?php ?> tag is the most commonly used, and recommended, of the <script language="php"> tag. 2. The language attribute of the script tag is deprecated ( http://www.w3.org/TR/html401/conform.html#deprecated ) . See http://www.w3.org/TR/html401/interact/scripts.html for more info about the script tag.
*** This issue has been marked as a duplicate of 120477 ***