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.
Created attachment 158136 [details] Screen shot exapmle I'm having troubles with formatting HTML code inside PHP functions. As you can see on attachment, closing line is indented badly, because html tag is not closed (and it shouldn't be closed inside that function). Is anyone working on NetBeans planning on making formatter normal, or should I consider switching to Eclipse or PhpStorm?
Your code is very unusual IMHO; usually, one defines a string variable and echo's it (or the string directly). So, your code would be something like: <?php function getHeader($title) { $header = ' <html> <head><title>' . $title . '</title></head> <body>...'; echo $header; } getHeader('my page'); Lowering to P4, thanks for reporting.
*** Bug 201961 has been marked as a duplicate of this bug. ***