Puredit Plugin SDK

      
Now you can also easily write your own plugins for Puredit.                                                    				            
                                                     									                      	 
Puredit automaticly examines the "Plugins" directory and loads all "legal" DLLs(Dynamic Linked Libraries) at each start.                  								 
                                                  									                    
                                                  										            
                                                  										            
The DLLs must contain the following functions:

name()must return the name of the plugin(string)
about() optional function
must return the author's name(string)
description() optional function
must return a description for the plugin(string)
plugin(Long hwnd,Long scid,Char scifile,Char scitext) hwnd: OS-handle of the Puredit main window
scid: handle of the current Scintilla-control (Visit http://scintilla.org to learn more about Scintilla)
scifile: name of the current file(will be an empty string if the file does not exist)
scitext: content of the current Scintilla-control
Note: You don't need to disable the Puredit main window when you write an application. Puredit does it itself. If you don't know how to control Scintilla, you can also make the plugin(...) function return the following strings: "add:" : Will insert the string after "add:" at the current position of the current Scintilla-control "set:" : Will replace all the text in the current Scintilla-Control with the string after "set:" When Puredit loads a plugin it also creates some environment variables which contain some information about the current Scintilla-Control: "sciforecolor" : foreground-color "scifont" : font "scisize" : font-size "scistyle " : scistyle can be "B"(bold), "I"(italic) or "BI" (bold and italic)