Community
    • Login

    How to write a plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    13 Posts 8 Posters 14.2k 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.
    • Michael VincentM
      Michael Vincent @PlayerXYT
      last edited by

      @PlayerXYT said in How to write a plugin:

      the only way I could find was C#

      I’m surprised, I thought C++ was the “original” Notepad++ plugin language:

      https://npp-user-manual.org/docs/plugins/#how-to-develop-a-plugin

      I don’t know of / have not seen a Java starter template - doesn’t mean it doesn’t exist. Maybe you can port the C++ one to Java?

      What’s your plugin idea?

      Cheers.

      Alan KilbornA 1 Reply Last reply Reply Quote 1
      • Alan KilbornA
        Alan Kilborn @Michael Vincent
        last edited by

        @Michael-Vincent said in How to write a plugin:

        I’m surprised, I thought C++ was the “original” Notepad++ plugin language

        It is.
        Because the OP wasn’t seeming to be interested in C++, I didn’t dig up and mention THIS which I think is the most-recent standard C++ template.

        1 Reply Last reply Reply Quote 3
        • linpengchengL
          linpengcheng
          last edited by

          An example of writing an npp plugin in java, the original author (sunjw) has deleted it in his github (https://github.com/sunjw) repository.
          Fortunately I fork it :-)

          https://github.com/linpengcheng/JsToolJava
          https://github.com/linpengcheng/JsFormatterJavaNppPlugin
          Chinese blog: https://www.sunjw.us/blog/java-jni-and-notepad-plugin/

          1 Reply Last reply Reply Quote 1
          • linpengchengL
            linpengcheng
            last edited by

            Sorry, found the new URL of npp plugin of the original author (sunjw)

            An example of writing an npp plugin in java, the original author (sunjw) new website and github repo.

            https://www.sunjw.us/jstool/npp/?redirect_src=vsc
            https://github.com/sunjw/jstoolnpp
            https://sourceforge.net/projects/jsminnpp/files/

            1 Reply Last reply Reply Quote 1
            • TroshinDVT
              TroshinDV
              last edited by

              @Alan-Kilborn said in How to write a plugin:

              I write most of my C/C++ code using Notepad++, only turning to something like Visual Studio to do a build of the code.

              What plugins do you use for code completion or codejumping?

              Michael VincentM 1 Reply Last reply Reply Quote 0
              • Michael VincentM
                Michael Vincent @TroshinDV
                last edited by

                @Дмитрий-Трошин said in How to write a plugin:

                What plugins do you use for code completion or codejumping?

                I use Notepad++ completion Settings => Preferences => Auto-Completion. It’s not ideal and only works on the local file - it’s not Intelli-Sense, but suffices for most my simple programming needs. For code navigation, I use a modified TagLEET.

                Cheers.

                TroshinDVT 1 Reply Last reply Reply Quote 1
                • Makwana PrahladM
                  Makwana Prahlad Banned
                  last edited by Makwana Prahlad

                  Hello,@PlayerXYT
                  Please follow this step, On how to write a plugin.

                  Step 1:- Download and unzip the latest release of Notepad++ Plugin Template.
                  Step 2:- Open NppPluginTemplate.vcproj in your Visual Studio.
                  Step 3:- Define your plugin name in PluginDefinition.h
                  Step 4:- Define your plugin commands number in PluginDefinition.h
                  Step 5:- Customize plugin commands names and associated function names in PluginDefinition.cpp.
                  Step 6:- Define the associated functions.

                  I hope this information will be useful to you.
                  Thank you.

                  1 Reply Last reply Reply Quote 0
                  • cmeriauxC
                    cmeriaux
                    last edited by

                    Hello,
                    I suggest you to use the fabulous template generator by dail8859
                    https://github.com/dail8859/cookiecutter-npp-cpp-plugin

                    Alan KilbornA 1 Reply Last reply Reply Quote 1
                    • AZJIO AZJIOA
                      AZJIO AZJIO
                      last edited by

                      template on PureBasic. Links to ready-made examples
                      https://www.purebasic.fr/english/viewtopic.php?p=535003#p535003

                      1 Reply Last reply Reply Quote 0
                      • Alan KilbornA
                        Alan Kilborn @cmeriaux
                        last edited by

                        @cmeriaux said in How to write a plugin:

                        Hello,
                        I suggest you to use the fabulous template generator by dail8859
                        https://github.com/dail8859/cookiecutter-npp-cpp-plugin

                        Just to say, I already linked to that earlier in the thread.

                        1 Reply Last reply Reply Quote 1
                        • TroshinDVT
                          TroshinDV @Michael Vincent
                          last edited by

                          @Michael-Vincent said in How to write a plugin:

                          I use Notepad++ completion Settings => Preferences => Auto-Completion. It’s not ideal and only works on the local file - it’s not Intelli-Sense, but suffices for most my simple programming needs. For code navigation, I use a modified TagLEET.

                          This is sometimes not enough, maybe.

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