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 158222 [details] Screenshot of error. Hi, I have just realised that Bug #257678 is probably related to this: When typing an if statement, a function block, or any other block that uses '{' and '}' is not correctly indented when inside a <script> tag that is indented itself. To replicate this issue, copy and past the following into a HTML file in netbeans: <!DOCTYPE html> <html> <head> <title>Indentation Test</title> </head> <body> <script> </script> </body> </html> Now try and type a function, an object, if statement or any other block inside that script tag, and you'll see that the indentation netbeans applies is wrong.