Community
    • Login

    run JavaScript on Noepad++ file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.8k 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.
    • JRJ
      JR
      last edited by

      i see how I can run Python script on my file thru a plugin… But is there a way to run javascript against a file? or does JS only work in the browser? thanks

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

        @JR ,

        If you mean, “I have a web-based javascript source file, or HTML with embedded javascript, so can I run that javascript inside Notepad++ in the same way that it would normally be run from within a web browser?” then the answer is no: use View > View Current File In… and pick a browser to run it in.

        If you mean, “I have seen the PythonScript plugin, which allows me to run python code with direct access to the file(s) currently open in Notepad++, but I don’t know/like Python; can I do something similar in JavaScript?” then the answer is yes, there is the jN Notepad++ Plugin, which embeds accesses a javascript interpreter inside from the plugin and will run scripts giving you access to the file(s) currently open in Notepad++.

        edit: rephrase, see strikes and additions inline.

        JRJ 1 Reply Last reply Reply Quote 1
        • JRJ
          JR @PeterJones
          last edited by

          @PeterJones lol! great repsonse. ill look into the jN plugin

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