NPP C# plugin template for UNICODE
-
Hi everybody,
I am trying to develop a notepad++ plugin by using C# (Visual Studio 2017).
I am right at the beginning of developing NPP plugin, I’m what is known as a notepad++ plugin developer newbie.In short I put the plugin’s dll (NPP C# Template and plugin demo C# project got here) to the notepad++ plugin directory but at the start of notepad++ (7.5.1 - 32bit) the below message box appears:
“The ANSI plugin is not compatible with your Unicode Notepad ++ …”
Looking for a solution I found that the Npp C# template is for ANSI only (see here).
How can I solve it?
Any help is appreciated.Regards
Mosca -
HI everybody,
Let me thank all of you for having spent your time reading my post.
So far I’ve come to understand that not many of you are using VS17 C# to develop yours NPP plugin.
The question then becomes, “Is there a programming language that it is better to use or that iit is the most commonly used to develop NPP plugin?”
Think at me as a blank sheet, open to any suggestions coming from you all.Thank you so much in advance
Regards
Mosca -
Looking for a solution I found that the Npp C# template is for ANSI only
That error can be a bit misleading because its possible that the DLL is not exporting any functions at all and Notepad++ can incorrectly report its an ANSI plugin. The C# template you are using is perfectly capable of UNICODE support since a several plugins have been created from it.
Is there a programming language that it is better to use or that iit is the most commonly used to develop NPP plugin?
C++ and C# seem to be the two most popular languages but really a wide variety of languages can be used as long as they can create a DLL file with the correct functions exported. There is also support for scripting languages (via plugins) that can utilize Lua and Python (and possibly others I am unaware of). I think many developers are still using VS2015 but there is no reason why you shouldn’t be able to use VS2017 (assuming it is configured correctly).
You might also take a look at this issue which discusses using VS2017 with the C# plugin pack.
-
Stick with C# I suggest (C++ makes my head hurt)… checkout C# plugin NppToolBucket… it seems to be well written and has various tools that showcase different plugin possibilities.
It’s on Github too:
https://github.com/phdesign/NppToolBucket -
HI everybody,
Thank you so much for your help thank to which I’m now able to compile dll for NPP.
In short I simply installed Visual Studio 2015. Thank you “dail” :)Regards
Alessandro -
@Alessandro Thanks, in fact compiling in VS 2015 solved the issue.
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