Community
    • Login

    Could everyone tell me how can use notepad++ plugins by a script

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    nppexportplugin
    4 Posts 3 Posters 1.9k 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.
    • CHN-STUDENTC Offline
      CHN-STUDENT
      last edited by

      Hi,everyone,i get a idea about writing a script which use the nppexport plugin to open a code file then export to a RTF or html file.

      But i do not know how can use notepad++ plugins by a script,so could everyone tell me how to do?

      Thanks!

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

        Using PythonScript plugin, you can write a script which is run from within Notepad++, which has access to all the features of Notepad++, including its editor panes and any plugins.

        It has a great documentation set at Plugins > Python Script > Context-Help

        The notepad.runPluginCommand() (in the “Notepad++ Object” section of the Context-Help) will allow you to run an arbitrary command from one of the plugin submenus. (Similarly, notepad.runMenuCommand() will allow you to run an arbitrary command from one of the other Notepad++ menus.)

        Good luck.

        1 Reply Last reply Reply Quote 1
        • PeterJonesP Offline
          PeterJones
          last edited by

          I was remiss in not mentioning other alternatives: you should be able to do it in LuaScript, and probably NppExec. Also, I believe there’s a “jN Notepad++ Plugin”, which is JavaScript scripting for Notepad++ – if it’s like the other scripting plugins, it also probably has access to the Notepad++ Plugins menu items.

          Each of these should be accessible from the Plugin Manager or easily found through favorite search engine.

          1 Reply Last reply Reply Quote 1
          • chcgC Offline
            chcg
            last edited by

            Current releases of the mentioned script plugins:

            https://github.com/bruderstein/PythonScript/releases/tag/v1.3.0
            https://github.com/dail8859/LuaScript/releases/tag/v0.8
            https://github.com/d0vgan/nppexec/releases/tag/v06-RC2
            https://github.com/sieukrem/jn-npp-plugin/releases/tag/2.2.185.4

            1 Reply Last reply Reply Quote 3

            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