Function list for JavaScript in HTML
-
Is there any way to populate the Function List with JavaScript functions when I’m viewing an HTML file with code in a <script> tag?
I’m using v8.3.3. Thanks!
-
there is no official Notepad++ API you can use but if JS can use the Windows API then you might be able to hack something together.
-
The Function List works just fine when the JavaScript is outside of the HTML script tag and in a file named .JS, it seems like it shouldn’t be too difficult to have it work on HTML files as well, but I don’t know where to begin.
-
One could copy the JavaScript FunctionList definition file overtop the HTML FunctionList definition file, but that would of course lose the normal HTML FunctionList behavior.
Alternate to that, one could try to merge the regexes in the FunctionList definition to try to get a combination of the two behaviors in the HTML FunctionList definition… but that would not necessarily be easy to do