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.
Right now NetBeans treats a JavaScript file (.js) extension as a regular text file. It would be nice if it would be recognized as a file of type "JavaScript", so the editor would provide some basic editing help: 1. Highlight JavaScript keywords like document, window, var, String literals, etc. 2. Automatically at matching closing parens, braces etc. 3. Highlight the matching opening/closing paren, braces etc. 4. For the (small) assortment of built-in JavaScript objects, like Date, provide code completion help if the editor can determine that a var is of that certain type. With the advent of Ajax techniques JavaScript is becoming a much more useful language and NetBeans should provide editing help. Since all of the above suggestions are already supported in other modules, this shouldn't be hard to implement. It would also be nice for these features to be available when editing JavaScript embedded within HTML/JSP pages. If you're really up to the task, you could provide code completion when editing JavaScript that's embedded in HTML pages. For example, if you say: var node = document.getElementById("tableID"); And a table node exists within the document with an id attribute of "tableID", then the editor could provide code completion for the node variable, like appendChild, removeChild, insertRow, etc etc. This would be much more difficult to implement I'm guessing.
This is already reported by Gili Tzabari. Thanks for your report anyway. *** This issue has been marked as a duplicate of 17588 ***
Verified. You might consider adding your votes to the duplicate issue #17588.