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.
Created attachment 153226 [details] example.html Attached the example html file and resulting html file. Nebeans display a hint to add JsHint global for global javascript objects, it works fine in javascript files, but in html file where inline javascript is used it displays the same suggestions to add global jshint, but instead of adding it to the top of the inline <script /> tag it add's it to the top of the document inside html. Either the jshint should not be suggested for inline script's, or it should add jshint inside the inline script tag. How to reproduce: inside example.html press on the hint "Generate jsHint global directive" next to the App.loader.show(). /* global App */ is added between <html> and <head> tags, see result.html
Created attachment 153227 [details] result.html
Already fixed in the trunk build. The Global variable hint is displayed only for .js files. *** This bug has been marked as a duplicate of bug 250496 ***