| PeTips |
 |
Pe, Programmers Editor
Tips on using Pe, the Programmers Editor, can be found here.
Navigation
-
Splitting The View. -
You can view and edit two different positions of the same file.
The little gadget directly above the top of the vertical scrollbar allows you to split the current view. Just grab it and pull downwards.
-
Function Popup. -
Pe supports scanning each file for functions and type declarations.
If you click the f(x) icon in the toolbar, a menu will popup which shows all the includes-files and functions Pe has found in the current file (the exact contents depend on the language of course).
You can then navigate to the function (or open the include file) by selecting an entry.
Another method to show this menu is pressing the middle mouse button and if you hold shift while doing so, the entries will be sorted alphabetically (normally they appear in the order they have in the file).
-
Find Function Popup. -
Quickly navigate to a specific function.
The "Find-Function..." feature allows you to quickly navigate to a specific funtion. In order to use it efficiently, you might have to set up a key binding for it. You can do that in the key binding preferences; <Shift>-<Cmd>-F seems a good choice.
If you trigger this feature, a popup window will appear, listing all known include files and functions. As you type the desired name, only entries matching that name will be listed. You can navigate in the list with the cursor keys and select the appropriate entry with <Return>.
Extensions
-
Spellchecking. -
You can create an extension to spellcheck the current file with aspell.
If make you the following script executable (run "chmod a+x filename" on it) and save it in the Extension folder in your pe folder, it will give you an entry in the Exntensions menu to send the current file to aspell. aspell must be installed, of course - it can be found at http://www.bebits.com/app/768
#!/bin/sh
FILENAME=$(basename "$PE_CUR_FILE")
Terminal -t "Checking $FILENAME" /boot/apps/aspell/aspell check "$FILENAME"
Glossary
-
Practical Examples -
You can use the glossary to define custom text strings.
The Pe documentation gives a good explanation of the glossary file and its use. In a nutshell, the glossary file is a plain text file located in Pe's settings directory (~/config/settings/pe/); in it, you can enter strings of text that you type often and Pe will insert these text strings when you tell it to - either using the Glossary pallette or keyboard shortcuts you define. The real power of the glossary file comes when you use some of the available variables - here are a few specific examples of what you can do with it.
## option-a ## HTML Anchor
<a href="$insert$">$selection$</a>
- Pressing option (windows key)-a will place the HTML tags to make an anchor/link out of the currently selected text ($selection$) and the insertion point will be placed ($insert$) so you can begin typing the URL immediately.
## option-shift-i ## HTML Image

- Inserts the HTML tag for an image and places the insertion point inside the quotation marks following the src attribute.
PeGlossary
Tip Category
IndexPage | TableOfContents
|
|
|