• Login
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.
  • P
    PlayerXYT
    last edited by Oct 2, 2020, 6:06 PM

    So I want to write a plugin for notepad ++ but the only way I could find was C# with visual studio, I don’t know what I am doing, is there any way to write it in java with eclipse?

    A M 2 Replies Last reply Oct 2, 2020, 6:24 PM Reply Quote 0
    • A
      Alan Kilborn @PlayerXYT
      last edited by Oct 2, 2020, 6:24 PM

      @PlayerXYT

      Notepad++ plugins have to be .DLL files.

      So if you can turn java into one of those, then I’d say it is doable.
      I’d have no idea how to do that, but some amazing things can be done in software. :-)

      is there any way to write it in java with eclipse?

      It seems sad that if you are excited enough about Notepad++ to want to write a plugin for it, that you wouldn’t want to use Notepad++ to edit it.

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

      1 Reply Last reply Reply Quote 0
      • M
        Michael Vincent @PlayerXYT
        last edited by Oct 2, 2020, 7:03 PM

        @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.

        A 1 Reply Last reply Oct 2, 2020, 7:12 PM Reply Quote 1
        • A
          Alan Kilborn @Michael Vincent
          last edited by Oct 2, 2020, 7:12 PM

          @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
          • L
            linpengcheng
            last edited by Oct 10, 2020, 5:12 AM

            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
            • L
              linpengcheng
              last edited by Oct 10, 2020, 5:27 AM

              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
              • T
                TroshinDV
                last edited by Oct 10, 2020, 6:21 AM

                @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?

                M 1 Reply Last reply Oct 12, 2020, 2:33 PM Reply Quote 0
                • M
                  Michael Vincent @TroshinDV
                  last edited by Oct 12, 2020, 2:33 PM

                  @Дмитрий-Трошин 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.

                  T 1 Reply Last reply Oct 13, 2020, 11:51 AM Reply Quote 1
                  • M
                    Makwana Prahlad Banned
                    last edited by Makwana Prahlad Oct 13, 2020, 4:01 AM Oct 13, 2020, 4:00 AM

                    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
                    • C
                      cmeriaux
                      last edited by Oct 13, 2020, 7:43 AM

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

                      A 1 Reply Last reply Oct 13, 2020, 11:46 AM Reply Quote 1
                      • A
                        AZJIO AZJIO
                        last edited by Oct 13, 2020, 10:08 AM

                        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
                        • A
                          Alan Kilborn @cmeriaux
                          last edited by Oct 13, 2020, 11:46 AM

                          @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
                          • T
                            TroshinDV @Michael Vincent
                            last edited by Oct 13, 2020, 11:51 AM

                            @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