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 - The php delimiters should be offered in the code completion
Summary: The php delimiters should be offered in the code completion
Status: RESOLVED DUPLICATE of bug 120477
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-19 15:39 UTC by Petr Pisl
Modified: 2008-01-22 18:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***