menu bar

Extending Pe

Extensions

Pe has the capability of using plug-ins called Extensions. These Extensions have the same format as the ones used for BeIDE. Therefore, you can use any Extension written for BeIDE with Pe. A more capable Extension interface will be developed for the next version of Pe.

As an extra you can also put executables (programs or scripts) in the Extensions directory. These scripts or programs will then be called when you choose them from the Extensions menu. They will get the current selection, or the entire content, as stdin input and stdout is captured and put in the document.

When Pe launches, it scans the Directory called Extensions, which is located in the same directory as the Pe application, for valid extensions and loads them. After that Pe tries to find the Extensions directory of BeIDE and scans that one too.

Pe is currently distributed with these Extensions:

BeBookFetch
This extension looks up the selected text against BeBook's doc bookmarks.
BeHappy
This extension asks BeHappy to show the relevant part of the BeBook from the currently selected function.
Cut Lines Containing and Copy LinesContaining
These extensions cut or copy lines from the text that satisfy a certain regular expression/search pattern.
HeaderGuard
This extension adds #ifdef/#define/#endif guards to headers to prevent multiple inclusions.
HeaderHeader
This extension adds copyright text to source files from templates. It loads extra templates from text files, and replaces keywords by values like date, author name and email.
Prefix Lines
This extension can place a string in front of or behind the selected lines
Pipe
This extension can be used to pipe the selected text through a shell command. You can use this to sort lines e.g.
ROT13
Use ROT13 to do a extremely simple encryption on the selected text. This encryption scheme is popular on news groups e.g.
drieuxCaps
This extension capitalizes words in the selection in some random way. Don't know why this is useful but it is based on the code supplied with a BBEdit extension with the same name written by Jamie McCarthy.
WebPaste
This extension pastes the selected text online and puts the url into the clipboard for easy sharing of code with other people on IRC or other methods.

Language Add-Ons

If you feel the need, you can write your own add-ons for Pe to do syntax colouring, function gathering for the popup and determine word breaks for softwrapping. An interface file is supplied when you have installed the Pe Goodies. If you need extra information to make these add-ons, don't hesitate to ask for more information or even an example.


Last updated: 05/17/98
Copyright 1997,1998, © Hekkelman Programmatuur,
info@hekkelman.com