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 256994 - Commenting a PHP block breaks the format
Summary: Commenting a PHP block breaks the format
Status: VERIFIED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-04 21:32 UTC by stuardo
Modified: 2016-06-06 05:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stuardo 2015-12-04 21:32:33 UTC
If I have a block like this:


foreach ($foos as $foo) {
    foreach ($bar as $bars) {
        doSomething($foo, $bar);
    }      
}

And then later I wrap the code inside /* and */, the format gets removed like this:


/*
 foreach ($foos as $foo) {
 foreach ($bar as $bars) {
 doSomething($foo, $bar);
 }
 }
 * 
 */
Comment 1 Tomas Mysik 2016-06-03 05:53:02 UTC
I cannot reproduce this issue in the dev version of NetBeans.

Thanks for reporting.

Product Version: NetBeans IDE Dev (Build 20160602-eb3cfce69024)
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14
System: Linux version 4.2.0-36-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 2 stuardo 2016-06-03 13:45:10 UTC
You are right, it's not happening in the DEV version
Comment 3 Tomas Mysik 2016-06-06 05:25:37 UTC
Thanks for your verification.