Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

notepad++ plugin - reading all document's text

I am writing a notepad++ plugin using c# template http://sourceforge.net/projects/sourcecookifier/files/other%20plugins/NppPlugin.NET.v0.5.zip/download.

Does anyone know how do I read all the current document text as I need to read all the text to string?

Does anyone know the function which reads the current document text?

like image 574
MoShe Avatar asked Jan 05 '12 23:01

MoShe


People also ask

What can Notepad++ do?

Notepad++ is a free text editor that comes with a lot of cool features. For instance, auto-save, syntax highlighting, tab support, multiple views, macros, and much more. If the core functionality is not enough, there are also many plugins available. My personal favorite is TextFX.

How do I get Notepad++ plugins?

Installing an Included Notepad++ Plugin To install a plugin, check the box for the plugin you want to install and then click Install. The Plugins Admin dialog box automatically closes, and you'll see a warning telling you that Notepad++ will exit and restart to complete the installation. Click Yes.

Does Notepad++ have a compiler?

In general: almost exactly the same as if you were compiling it from the command line. Please note that Notepad++ is not a compiler: if you do not have a separate executable that can compile your source code into an executable, Notepad++ cannot compile it for you.


1 Answers

Referencing the Scintilla API documentation should get you pointed in the right direction:

http://www.scintilla.org/ScintillaDoc.html#SCI_GETTEXT

The Demo project that you linked has an example of sending the messages.

like image 78
Ken Nickel Avatar answered Sep 21 '22 21:09

Ken Nickel