Community
Participate
Working Groups
Build ID: I20081211-1908 Steps To Reproduce: Enter this code inside a script tag on an HTML page... function square(x) { return x*x; } var square2 = function(x) { return x*x; }; var result1 = square(5); var result2 = square2(3, 4); if(result1 > 16) { document.write("Greater than:" + result1); } if(result2 == 9) { document.write("I am " + result2); } Format it. Nothing happens. The same code formats correctly inside a JSP page and a JS file.
Created attachment 130001 [details] Adds code formatting to the HTML editor of JS
Does some source viewer configuration clean up. - Adds the configuration for HTML content types - Directly declares content assist and hover help in plugin.xml. - Also happens to fix some JSP content assist problems as a side effect - reducing the number of duplicate choices presented to the user from 3 to 2.
No UI or API changes...should go into 3.0.5 and 3.1.
Released to 3.0.5 and 3.1m7