How to write a plugin
-
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.
-
@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.
-
@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. -
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/ -
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/ -
@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?
-
@Дмитрий-Трошин 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.
-
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. -
Hello,
I suggest you to use the fabulous template generator by dail8859
https://github.com/dail8859/cookiecutter-npp-cpp-plugin -
template on PureBasic. Links to ready-made examples
https://www.purebasic.fr/english/viewtopic.php?p=535003#p535003 -
@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-pluginJust to say, I already linked to that earlier in the thread.
-
@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.