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.

Bug 59858 - JavaScript Editor Code Completion, Keyword Highlighting
Summary: JavaScript Editor Code Completion, Keyword Highlighting
Status: CLOSED DUPLICATE of bug 17588
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-10 18:10 UTC by asleson
Modified: 2006-03-24 12:53 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description asleson 2005-06-10 18:10:17 UTC
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.
Comment 1 Jiri Kovalsky 2005-06-13 06:48:52 UTC
This is already reported by Gili Tzabari. Thanks for your report anyway.

*** This issue has been marked as a duplicate of 17588 ***
Comment 2 Jiri Kovalsky 2005-06-13 06:53:15 UTC
Verified. You might consider adding your votes to the duplicate issue #17588.