@matsnorberg
If you find C++ overwhelming (like I do), you might want to give NppCSharpPluginPack a try, since it’s built in C#. I maintain it myself, and I can vouch that it works pretty well. If you use JsonTools or HugeFiles, those plugins are more or less based on that template.
I think that C++ is a much better bet if you feel confident in your ability to write memory-safe C++, but if you feel anxious about not having a garbage collector, NppCSharpPluginPack is a good option.
There’s also PythonScript, which is probably not a great choice for any plugin that requires heavy computation due to Python being a slow language, but is quite nice for small scripts.