home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / euphoria / ed.doc < prev    next >
Text File  |  1994-03-10  |  4KB  |  112 lines

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