I intend to develop a plugin, that basically could process one file or all the open files within the text editor, based on a modal dialog box. So this does not appear too complicated.
I am however much worried with new UNICODE thing, that is now in the main stream with Notepad++.
Of course, compiling a DLL as unicode should not be a problem.
I suspect the NppInsertPlugin sample you can download on the FAQ page does not deal with Unicode.
To add worries, the link to "Notepad_plus_msgs.h" is broken.
And it's unclear how to deal with 16-bit strings through Scintilla as functions such as SCI_GETTEXT and SCI_SETTEXTstill deal with pointers to char type.
So ladies and gents, is there any tutorial or reference project that covers the topics that worry me?
Thanks a lot and hope I can advise on this new plugin fairly soon! :-)
/g
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The link is not broken for Firefox, though it is indeed in Internet Explorer (at least 6.0). Since SF says MSIE6.0 is not supported.... we probably can't help.
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry but I only use Firefox and "http://notepad-plus.svn.sourceforge.net/viewvc/notepad-plus/PowerEditor/src/MISC/PluginsManager/PluginsInterface.h" constantly returns a 404 error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oops, there is a "/trunk" missing before "/PowerEditor". I'mmaking the adjustment, hope it catches all such references. Please report if you find morecorrupted links like this, thanks.
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On page "ANSI and Unicode versions of Notepad++" the link to the header file is still broken!
Two additional questions if I may:
* In exchanged text buffers with Scintilla (for example, SCI_GETTEXT) are characters encoded as multi-byte UTF-8?
* On page "How to develop a plugin or a lexer", the sample project 'NppInsertPlugin' is already unicode or still ANSI?
Thank you.
/gg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Scintilla only knows about styled bytes. What they mean is determined by the current buffer encoding. This can be queried using the NPPM_GETBUFFERENCODING message, which returns a value from the UniMode enum.
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I intend to develop a plugin, that basically could process one file or all the open files within the text editor, based on a modal dialog box. So this does not appear too complicated.
I am however much worried with new UNICODE thing, that is now in the main stream with Notepad++.
Of course, compiling a DLL as unicode should not be a problem.
I suspect the NppInsertPlugin sample you can download on the FAQ page does not deal with Unicode.
To add worries, the link to "Notepad_plus_msgs.h" is broken.
And it's unclear how to deal with 16-bit strings through Scintilla as functions such as SCI_GETTEXT and SCI_SETTEXTstill deal with pointers to char type.
So ladies and gents, is there any tutorial or reference project that covers the topics that worry me?
Thanks a lot and hope I can advise on this new plugin fairly soon! :-)
/g
Don:
could you consider making the discrepancy between the "PluginInterface" and "PluginsManager" (extra s) source file names go?
Link fixed.
CChris
The link is not broken for Firefox, though it is indeed in Internet Explorer (at least 6.0). Since SF says MSIE6.0 is not supported.... we probably can't help.
CChris
Ishould have mentioned this, it is more relevant now
http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=ANSI_And_Unicode
Sorry but I only use Firefox and "http://notepad-plus.svn.sourceforge.net/viewvc/notepad-plus/PowerEditor/src/MISC/PluginsManager/PluginsInterface.h" constantly returns a 404 error.
Oops, there is a "/trunk" missing before "/PowerEditor". I'mmaking the adjustment, hope it catches all such references. Please report if you find morecorrupted links like this, thanks.
CChris
Follow up: links should be good now. Additionally, they now work again in IE - most had started breaking a few weeks ago.
CChris
On page "ANSI and Unicode versions of Notepad++" the link to the header file is still broken!
Two additional questions if I may:
* In exchanged text buffers with Scintilla (for example, SCI_GETTEXT) are characters encoded as multi-byte UTF-8?
* On page "How to develop a plugin or a lexer", the sample project 'NppInsertPlugin' is already unicode or still ANSI?
Thank you.
/gg
InsertionPlugin is ANSI - and pretty ld at that.
Scintilla only knows about styled bytes. What they mean is determined by the current buffer encoding. This can be queried using the NPPM_GETBUFFERENCODING message, which returns a value from the UniMode enum.
CChris