Community
    • Login

    Function list for JavaScript in HTML

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 658 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.
    • Dean TersigniD
      Dean Tersigni
      last edited by

      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!

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Dean Tersigni
        last edited by

        @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
        • Dean TersigniD
          Dean Tersigni
          last edited by

          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.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Dean Tersigni
            last edited by

            @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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors