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.
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;" )
This issue has been submitted several times. Duplicate is as marked. *** This bug has been marked as a duplicate of bug 186731 ***