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

Summary: Additional Heredoc handling
Product: php Reporter: oopman <oopman>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: amobilia
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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:

<<<HTML
blah
blah
blah
HTML;

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.