Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Function list for JavaScript in HTML

    Help wanted · · · – – – · · ·
    3
    4
    175
    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 Tersigni
      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!

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        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 Tersigni
          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.

          PeterJones 1 Reply Last reply Reply Quote 0
          • PeterJones
            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
            Copyright © 2014 NodeBB Forums | Contributors