Hi
Thanks, I am using a different strategy to achieve how to know when to store the changes back into the DB.
I save as a file locally when I open the data from the database. (I did this anyway so the Tab Caption would have the correct name and to do comparisons with what is in the DB)
I save the local file again every time the user saves to the DB
I listen to the notification NPPN_FILEBEFORESAVE and save the data to the database. (user click the Save icon etc)
So if the user closes the application or a file that NPP knows needs saving and NPP asks if the user wants to save then the save is also stored into the DB.
Relax, guys. OP’s only wondering whether such would be possible, perhaps before attempting to implement it himself as an optional plugin.
The main reason i see lots of people jizzing their pants over Sublime Text is that it looks nice. I prefer the superior feature suite of Notepad++ but agree that ST’s Monokai and tabs look better than Npp’s.
Hi Martin,
from my understanding this needs to be handled by the scintilla component
or you have to define your own user defined language using builtin UDL.
@dail Problem is fixed - I believe it had to do with false implementation of folding… In any case I cannot reproduce this anymore, so I think it’s plugin specific.
Honestly you can probably use whatever you want as long as the user has the correct runtime/redistributable etc installed. Notepad++ is currently built with VS2013 but that doesn’t mean you have to use that in particular.
In order to make a plugin backwards compatible, would a plugin have to first check the N++ version with NPPM_GETNPPVERSION and if it is less than v6.8.4 use L_JS and if it is v6.8.4 and greater, use L_JAVASCRIPT?
Yes, that’s right. L_JS is used for embeded javascript so only internal use in Notepad++.
I have realised how I can do this.
In my plugin in C# I create a new file with the file name I need to link to the primary keys of the dDB data.
Then use
Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_DOOPEN, 0, path);
to open the file with the tab caption set.