Community
    • Login

    Function list for JavaScript in HTML

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.1k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors