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.

Bug 122307

Summary: The php delimiters should be offered in the code completion
Product: php Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Victor Vasilyev <vvg>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Pisl 2007-11-19 15:39:43 UTC
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.
Comment 1 Victor Vasilyev 2007-11-19 19:01:44 UTC
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.  
Comment 2 Victor Vasilyev 2008-01-22 18:05:26 UTC

*** This issue has been marked as a duplicate of 120477 ***