How to create a C# plugin?
-
I’m trying to create a plugin for Notepad++ in order to integrate NLog (like line colouring, filtering, …).
For that I’ve tried to get the so-called “Demo” plugin working, but I’m having lots of troubles (see StackOverflow post “https://stackoverflow.com/questions/79632308”).
Is there somewhere a working C# plugin (together with a working “DllExport”) that I can use as a starting point?
Thanks in advance
Dominique -
@scampsd ,
Please be patient, and do not post two copies of the same question. A message similar to the following, when you were creating your post(s), should have made it clear that you would have to wait until your post was approved:
Is there somewhere a working C# plugin (together with a working “DllExport”) that I can use as a starting point?
Have you tried looking in the Online User Manual at https://npp-user-manual.org/, where the Plugins page has a section on plugin templates for various languages, which includes two actively-maintained C# plugin templates?
kbilsted’s NotepadPlusPlusPluginPack.Net, mentioned in the SO discussion you linked to, hadn’t been updated for years (which is why it was recently removed from the User Manual list of templates): @Mark-Olson’s NppCSharpPluginPack mentioned in the Manual is a fork of that template, and has been updated to work with modern Notpead++ (and he’s a regular here and actively maintaining that template), so he’ll probably chime in with more advice for you.
-
@scampsd
I would recommend NppCSharpPluginPack, which @PeterJones referenced above. I maintain it, and I don’t know of any other C# plugin templates that are actively maintained.