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 141097 - can't do autocomplete of HTML DOM code inside a echo"";
Summary: can't do autocomplete of HTML DOM code inside a echo"";
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 4 votes (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2008-07-22 02:27 UTC by kubr1ck
Modified: 2017-02-17 15:17 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description kubr1ck 2008-07-22 02:27:49 UTC
after hardly searching the issues and google, if i repeat any1 sorry,

i can't do autocomplete of HTML DOM code inside a echo""; only the php variables appear in the popup

i made it P1 because as a enhancement i think is pretty important, i use a separated JS file but eventually is almost 
has important to have a js autocomplete there it realizes is inside <Script type=\"javascript\">.

Compliments all and superb work.
Comment 1 i30817 2008-07-23 00:16:09 UTC
Yes i really this would be a worthwhile enhancement. I would think so even if i didn't know the guy that reported and he
didn't ask to vote.
Comment 2 Tomasz Slota 2010-02-10 08:44:39 UTC
reassigning to default owner
Comment 3 Filip Zamboj 2010-09-15 12:26:05 UTC
batch reassigning
Comment 4 schkovich 2011-02-20 17:49:27 UTC
You should not be echo-ing at the first place. It's bad practice. IMHO the IDE should not support such practice.
Comment 5 Petah 2012-11-12 01:31:11 UTC
I agree in the case of not needing this for echoing HTML, but it would be nice for SQL strings, or JS string (used for Mongo DB).

Perhaps a comment hint could say what a string contains and format/color code it in that way?
Comment 6 Xenos 2017-02-17 15:17:34 UTC
If you're doing HTML, put it in the HTML, not in the echo (same applies for whatever you're echoing: put it outside the PHP template tags <?php and ?>).

Auto-completion occurs for SQL in case you're putting the stirng straight into a PDO request, because there, it can be known that you're doing an SQL query.

But for "echo", you can output anything, so there cannot be any autocompletion provided but the PHP itself (like variables and functions).

So to me, this bug should not be fixed, and probably won't seeing for how long it was opened. I'll still let someone else close this, to have a confirming opinion.