home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / progmisc / euphor10.zip / ED.DOC < prev    next >
Text File  |  1993-06-25  |  4KB  |  104 lines

  1.            +-----------------------+
  2.            |  The Euphoria Editor  |
  3.            +-----------------------+
  4.  usage: ed filename
  5.     ed
  6.  
  7.  If you have just had an error (in the Developer's version) you can simply
  8.  type "ed", and you will be automatically placed in the editor, editing the
  9.  offending file, at the line and column where the run-time or compile-time
  10.  error was detected. The error message will be at the top of your screen.
  11.  
  12.  .e, .ex and .pro files are displayed in color if possible. Other files are
  13.  in mono. You'll know that you have misspelled something when the color does
  14.  not change as you expect. Balanced brackets on the same line have the same
  15.  color.
  16.  
  17.  The arrow keys move the cursor left, right, up or down.
  18.  Most other characters are immediately inserted into the file.
  19.  Non-standard keys on the keyboard are ignored.
  20.  
  21.  Immediate Commands
  22.  ------------------
  23.  <delete>         Delete the current character above the cursor.
  24.  
  25.  <back-space>     Move the cursor to the left and delete a character.
  26.  
  27.  <control-delete> Delete the current line.
  28.  
  29.  <insert>         Re-insert the preceding series of deletes or
  30.           control-deletes at the current cursor position.
  31.  
  32.  <home>           Move to line 1.
  33.  
  34.  <end>            Move to the last line in the file.
  35.  
  36.  <page up>        Move up one screen
  37.  
  38.  <page down>      Move down one screen
  39.  
  40.  
  41.  Escape Commands
  42.  ---------------
  43.  Press and release <Esc>, then press one of the following keys,
  44.  then press Enter:
  45.  
  46.  h     Get help text on the editor, or on Euphoria.
  47.  
  48.  q       Quit the editor (with a prompt if you've changed anything).
  49.  
  50.  s       Save the file and quit the editor.
  51.  
  52.  w     Save the file but do not quit the editor.
  53.  
  54.  e       Save the file, and then execute it with ex. When the program finishes
  55.      execution you'll hear a beep. Hit Enter to return to the editor. If
  56.      there was an error, you will be positioned at the point of the error.
  57.  
  58.  d     Run a DOS command. After the beep hit Enter to return to the editor.
  59.      You can use this command to edit another file and then return.
  60.  
  61.  n     Start editing a new file. Deleted lines/chars and search strings are
  62.      available for use in the new file.
  63.  
  64.  f       Find the next occurrence of a string. Hit Enter to find more
  65.      occurrences. Any other key quits searching.
  66.  
  67.  r     Globally replace one string by another. Operates like f command.
  68.  
  69.  l     Change the number of lines displayed on the screen. Only certain
  70.      values are allowed, depending on your video card. Many cards will
  71.      allow 25, 28, 43 and 50 lines.
  72.  
  73.  <number> Move to line <number>. Esc 0 Enter will refresh the screen.
  74.  
  75.  <Enter>  <Enter> by itself will tell you the name of the current file,
  76.       as well as the line and character position you are on, and
  77.       whether the file has been modified
  78.  
  79.  Cutting and Pasting
  80.  -------------------
  81.  When you control-delete a series of consecutive lines, or delete a series of
  82.  consecutive characters, you create a "kill-buffer" containing what you just
  83.  deleted. This kill-buffer can be inserted anywhere by moving the cursor and
  84.  then pressing insert. A new kill-buffer is started, and the old buffer is
  85.  lost, each time you move away and start deleting somewhere else. For example,
  86.  cut a series of lines with control-delete. Then move the cursor to where you
  87.  want to paste the lines and press insert. If you want to copy the lines,
  88.  without destroying the original text, first cut them, then immediately press
  89.  insert to re-insert them. Then move somewhere else and press insert to insert
  90.  them again, as many times as you like. You can also cut a series of
  91.  characters, move the cursor, and then paste the deleted characters somewhere
  92.  else. Immediately press insert after deleting if you want to make a copy
  93.  without removing the original characters.
  94.  
  95.  Once you have a kill-buffer, you can type Esc n to switch to a new file
  96.  and insert the kill-buffer somewhere in the new file. You will be asked if
  97.  you want to save your changes to the original file or not.
  98.  
  99.  Source Code
  100.  -----------
  101.  The complete source code to this editor is in bin\ed.ex and
  102.  bin\syncolor.e. You are welcome to make improvements.
  103.  
  104.