PillarSoft

http://www.pillarsoft.net/help/os2/enhanced-e-editor/plugin-support.shtml

Enhanced E Editor - Plugin Support

Plugin support extends the opportunity for you to manipulate text in the editors text window. The text window will be refered to as the MLE (Multiple Line Entry field) for the purposes of this discussion.

The Enhanced E has 9 slots available in the Plugin menu to make your plugins available during an editing session. You can set up plugins to do just about anything with the text that VisPro/Rexx would allow. Plugins are read in alphabetical order from the plugin directory at startup and the first 9 plugins found become part of the menu. Each of the first nine plugins are assigned a hotkey from <Ctrl+1> through <Ctrl+9>.

Your plugin has to be a properly laid out rexx .cmd file but with a ".plg" extention and placed in the "PlugIns" directory for the editor to recognize and load it. No checking is done on your syntax etc. so it is up to you to do the proper error checking. That being said, writing a plugin can be quite simple or, it can be made very complex.

The Code Template Tool can be a great help when building a plugin. Select the call you want from it and double click it, the Code Template Tool will then insert the chosen code snippet at the current cursor location. We will be adding a new template called "VPRexx.ext" that will contain many VisPro/Rexx calls as well as standard Rexx calls. These templates are available for download from our website.

In general you will:

Take a look at the "Sample.plg" file in the "PlugIns" directory for a simple example of how to build a plugin.

<Multiple Language Support Enhanced E Editor Presentation Mode>