According to this post , Netbeans should support Javascript type output. And Javascript support must be built into the Netbeans editor. However, when I add the HTML file to a simple Java project and include the Raphael javascript library using <script src="..."/> , it seems that Netbeans does not recognize the library. Even very simple add-ons, such as detecting a new Raphael function in a window object, do not work.
<script src="..."/>
Raphael
For instance:
<html> <head> <title>Raphael Play</title> <script type="text/javascript" src="raphael.js"></script> <script type="text/javascript"> window.onload = function() { var paper = new Raphael(document.getElementById('canvas_container'), 500, 500); // no ctrl+space for autocomp Ra -> Raphael var candy = paper.set(); // and of course paper is recognized as Object, no autocompletions for it. </script> </head> <body> <div id="canvas_container"></div> </body> </html>
Not sure about Netbeans support, but as far as I know, autocompletion (if necessary) in JS is only possible if your code runs continuously. In Firebug, for example, you do this by clicking a tab in the console.