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.
let's assume that at the end of a file I have a class: <?php ... ... class Bean { } ?> Now. If I place the cursor at the beginning of the last line, like this: (cursor)?> and then I start typing another class for example: class Carrot {(CURSOR)?> and then when I press enter it should give me something like this: class Carrot { (CURSOR) }?> or like this: class Carrot { (CURSOR) }?> or like this: class Carrot { (CURSOR) } ?> What NetBeans gives me is actually hilarious: class Carrot { (CURSOR)?> } I guess auto-completion / closing-brackets mechanism doesn't mind me writing PHP outside PHP ;)
problem reproducible, a corner case.
similar was reported against indentation when php mixed with html. a duplicate? #175885 https://netbeans.org/bugzilla/show_bug.cgi?id=175885
Still reproducible, but too late fix it in NB 6.8.
Fixed in web-main. I'm sorry that it took so long.
Integrated into 'main-golden', will be available in build *201010080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9e12d880aeb8 User: Petr Pisl <ppisl@netbeans.org> Log: #167816 - bracket completion: Auto-completion (closing brackets) acts a bit crazy ;)