line_start()
| Move the insertion point to the start of the current line. |
line_end()
| Move the insertion point to the end of the current line. |
next_line()
| Move the insertion point to the next line. |
previous_line()
| Move the insertion point to the previous line. |
left_char()
| Move the insertion point leftwards on the current line by one character position. |
right_char()
| Move the insertion point rightwards on the current line by one character position. |
file_end()
| Move the insertion point to the end of the document. |
file_start()
| Move the insertion point to the start of the document. |
delete_to_eol()
| Delete the characters on the current line that follow the current insertion point. |
delete_to_sol()
| Delete the characters on the current line that precede the current insertion point. |
delete_next()
| Delete the next character that follows the current insertion point. |
delete_previous()
| Delete the character that precedes the current insertion point. |
select_all()
| Select the entire contents of the document. |
select_start()
| Mark the current insertion point as the start of a new selection. |
select_extend()
| Extend the selected section of the document from the previously selected point or section to the current insertion point. |
search_forward()
| Search forwards for the next occurrence in the document of the currently selected text. |
search_backward()
| Search backwards for the previous occurrence in the document of the currently selected text. |
insert("###")
| The parameter will be inserted at the current insertion point. The "#" text will need to be replaced with something more useful to you. It must be included in double quotes. |
bounds_insert("###","###")
| Insert the first text parameter at the commencement of the current selection, and a second text parameter at the end of the selection. The "#" text will have to be edited to what you want. This is useful for putting pairs of layout marks around a block of text, such as "%BD%" and "%LT%" or "%IT%" and "%RO%". |
align()
| If there is no current selection, this will align the current line
with the previous.
If there is a current text selection, this will cause all lines within the selection to be aligned with the line containing the start of the selection. |
shift_left()
| Shift the currently selected line or lines left by one character, discarding a blank character from the front of the lines. |
shift_right()
| Shift the currently selected line or lines right by one character, adding a blank character to the front of the lines. |
upper_case()
| Convert the selected text to upper-case. |
lower_case()
| Convert the selected text to lower-case. |
undo()
| Undo the most recent change to the document. |
redo()
| Redo the most recently undone change to the document. |
newFile()
| This will perform the same as selecting "New" from the "File" menu. If the current window contents have been modified, a new window will be created. Otherwise, the contents of the current window are cleared. |
openFile()
| This will perform the same as selecting "Open" from the "File" menu. It will put the fileselection popup panel on the screen. |
saveFile()
| This will perform the same as selecting "Save" from the "File" menu. It will put the fileselection popup panel on the screen, allowing you to confirm or modify the filename. |
closeWindow()
| This will perform the same as selecting "Close" from the "File" menu. If the window contents have been changed, it will prompt you to verify that you wish to discard the current window. |
clearWindow()
| This will perform the same as selecting "Clear" from the "File" menu. It will discard the contents of the current window. |
expandToWindow()
| This will put the popup panel on the screen that is obtained by selecting "File", "Expand", "To window" from the menus. |