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 177967 - Additional Heredoc handling
Summary: Additional Heredoc handling
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2009-12-02 00:57 UTC by oopman
Modified: 2017-05-31 14:50 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description oopman 2009-12-02 00:57:10 UTC
Heredoc handling in NetBeans is pretty nice as is. However, I have a suggestion which could make Heredoc even more useful.

In essence, add special handling for a heredoc of the form:


which treats the contents within the heredoc string as a block of HTML. This block of HTML is distinct and is not treated as being within the normal structure of the rest of the PHP file.

Treating the contents of such a Heredoc as HTML would allow for the editor to function as though it were editing plain HTML, something is is very very good at (I've gotten many web designers hooked on netbeans simply for the HTML handling)

I think this would be a cool and useful addition.
Comment 1 Filip Zamboj 2010-09-15 12:30:30 UTC
batch reassigning
Comment 2 amobilia 2016-09-22 03:29:14 UTC
I'm not sure that creating some netbeans specific heredoc should be a good idea.
@tmysik ?
Comment 3 semoriil 2017-05-31 14:50:46 UTC
I'm against handling heredoc only as HTML because it can be javascript or SQL as well. See #177967 as more right way.

But one of simplest things missed in Netbeans' heredoc support is skipping those blocks on group indent. Such indent is really harmful for heredoc.

Also code completion in useless now inside such block if code in not php.