home *** CD-ROM | disk | FTP | other *** search
- +-----------------------+
- | The Euphoria Editor |
- +-----------------------+
-
- usage: ed filename.ex
- ed
-
- After an error, just type "ed", and you'll be placed in the editor, editing
- the offending file, at the line and column where the run-time or compile-time
- error was detected. The error message will be at the top of your screen.
-
- .e, .ex and .pro files are displayed in color. Other text files are in mono.
- You'll know that you have misspelled something when the color does not change
- as you expect. Balanced brackets on the same line have the same color.
-
- The arrow keys move the cursor left, right, up or down. Most other characters
- are immediately inserted into the file. Non-standard keys on the keyboard are
- ignored.
-
- In Windows, you can "associate" various types of files with ed.bat. You will
- then be put into ed when you double-click on these types of files - e.g.
- .e, .pro, .doc etc. Main Euphoria files ending in .ex might better be
- associated with "ex".
-
- Immediate Commands
- ------------------
- <delete> Delete the current character above the cursor.
-
- <back-space> Move the cursor to the left and delete a character.
-
- <control-delete> Delete the current line.
-
- <insert> Re-insert the preceding series of deletes or
- control-deletes at the current cursor position.
-
- <home> Move to line 1.
-
- <end> Move to the last line in the file.
-
- <page up> Move up one screen
-
- <page down> Move down one screen
-
-
- Escape Commands
- ---------------
- Press and release <Esc>, then press one of the following keys,
- then press Enter:
-
- h Get help text on the editor, or on Euphoria.
-
- q Quit the editor (with a prompt if you've changed anything).
-
- s Save the file and quit the editor.
-
- w Save the file but do not quit the editor.
-
- e Save the file, and then execute it with ex. When the program finishes
- execution you'll hear a beep. Hit Enter to return to the editor.
-
- d Run a DOS command. After the beep, hit Enter to return to the editor.
- You can use this command to edit another file and then return.
-
- n Start editing a new file. Deleted lines/chars and search strings are
- available for use in the new file.
-
- f Find the next occurrence of a string. Hit Enter to find more
- occurrences. Any other key quits searching.
-
- r Globally replace one string by another. Operates like f command.
-
- l Change the number of lines displayed on the screen. Only certain
- values are allowed, depending on your video card. Many cards will
- allow 25, 28, 43 and 50 lines.
-
- <number> Move to line <number>. Esc 0 Enter will refresh the screen.
-
- <Enter> Esc <Enter> will tell you the name of the current file,
- as well as the line and character position you are on, and
- whether the file has been modified.
-
- Cutting and Pasting
- -------------------
- When you control-delete a series of consecutive lines, or delete a series of
- consecutive characters, you create a "kill-buffer" containing what you just
- deleted. This kill-buffer can be inserted anywhere by moving the cursor and
- then pressing insert. A new kill-buffer is started, and the old buffer is
- lost, each time you move away and start deleting somewhere else. For example,
- cut a series of lines with control-delete. Then move the cursor to where you
- want to paste the lines and press insert. If you want to copy the lines,
- without destroying the original text, first cut them, then immediately press
- insert to re-insert them. Then move somewhere else and press insert to insert
- them again, as many times as you like. You can also cut a series of
- characters, move the cursor, and then paste the deleted characters somewhere
- else. Immediately press insert after deleting if you want to make a copy
- without removing the original characters.
-
- Once you have a kill-buffer, you can type Esc n to switch to a new file
- and insert the kill-buffer somewhere in the new file. You will be asked if
- you want to save your changes to the original file or not.
-
- Source Code
- -----------
- The complete source code to this editor is in bin\ed.ex and bin\syncolor.e.
- You are welcome to make improvements.
-
- Maximum File Size
- -----------------
- Like any Euphoria program, ed can use extended memory. It will edit files
- that are much larger than what MS-DOS EDIT or Windows Notepad can handle.
-
-