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 188971

Summary: Code folding in "if's", "for's" block "{}" etc.
Product: php Reporter: zamaliphe
Component: EditorAssignee: rmatous <rmatous>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
URL: http://opti-eoa.com
Issue Type: ENHANCEMENT Exception Reporter:

Description zamaliphe 2010-07-26 22:24:45 UTC
Code folding "if's", "for's", foreach's, etc, is the only thing that Netbeans lacks of (and most text-editors/IDE, for that matter). Yes, you can use custom-folds, but that's not pratical at all.
If done right, you could code fold a "if" with html code inside of if.

Example:

<?php if (bla) { ?>
<table>...</table>
<? } ?>

( or with "if (bla):" and "endif;" )
Comment 1 AIML_Engr 2010-08-16 14:02:12 UTC
This issue has been submitted several times. Duplicate is as marked.

*** This bug has been marked as a duplicate of bug 186731 ***