PDA

View Full Version : PIDE custom plugins


kornalius
09-15-2007, 09:33 PM
I don't know if you have noticed in the PIDE, there is a new menu called 'Custom'. In there you can add pretty much any functionality to PIDE code editor. You will notice in the C:\Program Files\PPL\Custom folder a few .ppl files. These files are scanned when PIDE is launched and added to the Custom menu.

How does it work?

PIDEFilename$ variable is created containing the currently selected tab filename in the PIDE editor.

The selected text content is stored in the Clipboard, you can access the text value using the GetClip() function. You can later assign it back using SetClip(MyValue$) when you are done with it.

You need to use the following syntax:

proc main
**SetClip({/*} + GetClip + {*/});
end;

This code will comment out the selected text.

Now, the good part, I'd like the community to join in and create some really cool custom plugins for the PIDE.

Here are a few examples of great plugins you could develop to help PPL:

- Insert Ascii character from a list.
- Insert file content
- Convert to HEX
- Encrypt value
- Insert filename

Please restrain for a couple days to write anything serious as I will modify the plugin engine to support more variables and not use the clipboard anymore for passing text back and forth. I just found a new way by just using PPL global variables.

This was just to give you an idea of what is ahead for version 1.3.1.

zehlein
09-16-2007, 07:18 AM
Sounds like another cool feature, Kornalius. Looking forward to use it...