• Login
Community
  • Login

Function list for JavaScript in HTML

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 651 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Dean Tersigni
    last edited by May 19, 2022, 2:53 PM

    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!

    E 1 Reply Last reply May 20, 2022, 7:56 AM Reply Quote 0
    • E
      Ekopalypse @Dean Tersigni
      last edited by May 20, 2022, 7:56 AM

      @dean-tersigni

      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.

      1 Reply Last reply Reply Quote 0
      • D
        Dean Tersigni
        last edited by May 23, 2022, 5:43 PM

        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.

        P 1 Reply Last reply May 23, 2022, 5:52 PM Reply Quote 0
        • P
          PeterJones @Dean Tersigni
          last edited by May 23, 2022, 5:52 PM

          @dean-tersigni ,

          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

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors