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.
Whent typing an if/while in javascript the closing bracket is inserted automatically. If a line of code is already there and i press return with the caret after the opening bracket a new closing bracket is inserted. If backspace is pressed before the first line a new line is inserted but the line that wraps goes into a wrong position and a format/tab is needed to fix the indentation.
Could you please give us some more details (exact step by step or screencast)? I tried this in JS file: if(true){var a = 1; and pressed Enter before "var", result is if(true){ var a = 1; } Product Version: NetBeans IDE 7.3.1 (Build 201306052037)
Inside a php file: <script> function codeFormat(content) { var new_content = content.replace(/<span class="[a-zA-Z0-9_ \-]*">/i, ''); alert(new_content); } </script> if i press enter after opening bracket of the function i get <script> function codeFormat(content) { } var new_content = content.replace(/<span class="[a-zA-Z0-9_ \-]*">/i, ''); alert(new_content); } </script>
Thank you for the sample. It seems to be caused by having "<s" inside replace() call. For instance following does not trigger the issue var new_content = content.replace(/<epan class="[a-zA-Z0-9_ \-]*">/i,''); So it looks like issue 226675. Thank you for reporting *** This bug has been marked as a duplicate of bug 226675 ***