home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / e / estat21.zip / EASIDOC.ZIP / ESCHAP16.DOC < prev    next >
Text File  |  1992-06-30  |  8KB  |  199 lines

  1.  
  2.  
  3.      Chapter 16: THE EDIT PROGRAM
  4.  
  5.      A simple text editor is supplied as the file EDIT.EXE.
  6.      This allows plain text or ASCII files to be edited and is
  7.      suitable for viewing the documentation and demonstration
  8.      example files and can be used to produce and edit data
  9.      files, command files, output files and graph files (as
  10.      well as DOS batch files and any other ASCII files you may
  11.      have belonging to other applications).
  12.  
  13.      Only ordinary letters, digits, symbols and punctuation
  14.      are dealt with by EDIT and if you try to use it with a
  15.      file produced by a word processor containing special
  16.      formatting characters then it will give unpredictable
  17.      results. Tab and page break characters are displayed by
  18.      the EDIT program (as little smiley faces) but cannot be
  19.      entered into files. No word wrap, justification or other
  20.      text formatting functions can be carried out. All this
  21.      means that EDIT allows you to see exactly what characters
  22.      make up a file and how they are laid out. With many word
  23.      processors this is not possible because the formatting
  24.      characters which are contained in the file are hidden and
  25.      do not appear on the screen. This makes EDIT ideal for
  26.      editing the accessory files which EASISTAT and EASIGRAF
  27.      use, but EDIT's lack of formatting features make it
  28.      unsuitable for editing other kinds of file such as
  29.      letters and documents for which a standard word processor
  30.      should be used. You may also find that EDIT works rather
  31.      slowly and is not good for handling very large files.
  32.      Many other text editors with more features are available,
  33.      some of them Shareware (PC-Write is a good example), and
  34.      you may prefer to obtain one of these.
  35.  
  36.      Only a few functions are available in the EDIT program
  37.      and it should be possible to work out how to perform most
  38.      of these from the descriptions of the menu functions and
  39.      the information provided when the F1 key is pressed.
  40.      However some brief notes on using the program are
  41.      provided below.
  42.  
  43.  
  44.      16:1. Running EDIT
  45.  
  46.      The EDIT program is run from DOS by entering the command
  47.      EDIT. If DOS gives the "Bad command or file name" message
  48.      then that means it cannot find the program file called
  49.      EDIT.EXE because it is not in the current working
  50.      directory and not in one of the subdirectories listed in
  51.      the PATH command which should appear in your AUTOEXEC.BAT
  52.      file. You should see the sections on installation for
  53.      more details of this. To run the EDIT program from within
  54.      EASISTAT the command SYSTEM EDIT can be used. (Do not get
  55.      confused between the EASISTAT command EDIT, which runs
  56.      the full-screen data editor, and the EDIT program, which
  57.      is a separate text editor contained in the file
  58.      EDIT.EXE.)
  59.  
  60.      You may specify one or more filenames when you run EDIT
  61.      e.g.:
  62.  
  63.  
  64.  
  65.      
  66.        118 
  67.         The EDIT program 
  68.      
  69.      EDIT EXAMPLE.DAT
  70.  
  71.      and if you do this then the program will read in this
  72.      file and present it for editing. Alternatively you may
  73.      provide a DOS file specification with wildcards such as:
  74.  
  75.      EDIT *.DAT
  76.  
  77.      This would cause EDIT to read in every file ending .DAT
  78.      in the current working directory. Each file would be in
  79.      its own buffer and could be edited separately, and text
  80.      could also be transferred between one file and another.
  81.      If you wished to view and edit all the batch files and a
  82.      file called FRED.DOC on the disk in drive B: you would
  83.      enter:
  84.  
  85.      EDIT B:*.BAT B:FRED.DOC
  86.  
  87.  
  88.      16:2. EDIT menus
  89.  
  90.      Items are selected from menus by using the up and down
  91.      cursor keys to move to an item and then pressing the
  92.      ENTER key to select the item. Alternatively a letter may
  93.      be pressed and the next item beginning with that letter
  94.      will be moved to (but not selected until the ENTER key is
  95.      pressed). This is especially handy to move to a filename,
  96.      for example to select a file beginning with "Z" one could
  97.      begin by pressing the Z key rather than moving all the
  98.      way down the list one file at a time using the DOWN ARROW
  99.      key. It is useful also for selecting items from the main
  100.      menu, for example to quit the program you can just press
  101.      Q and then ENTER. Help on each menu item is provided by
  102.      moving to that item and pressing the F1 key. The menu can
  103.      be cancelled by pressing the ESCAPE key.
  104.  
  105.  
  106.      16:3. Editing keys
  107.  
  108.      The special keys used for editing text are displayed by
  109.      pressing F1 while editing. The keys used to move around
  110.      and edit a line are the same as those used when inputting
  111.      commands into EASISTAT, and additionally the UP and DOWN
  112.      cursor keys and PAGE UP and PAGE DOWN keys can be used to
  113.      move around the text. CONTROL-PAGE UP and CONTROL-PAGE
  114.      DOWN move to the start and end of the text. A block of
  115.      text can be marked using the F6 key, and before another
  116.      block can be marked the F5 key must be used to unmark the
  117.      first block. Once a block of text has been marked it can
  118.      be moved, copied or deleted by pressing the F2, F3 or F4
  119.      keys. Previously deleted blocks can be undeleted by
  120.      pressing CONTROL-F4, and if desired this process can be
  121.      repeated a number of times. Pressing the ESCAPE key
  122.      causes the main menu to appear.
  123.  
  124.  
  125.      16:4. Using buffers
  126.  
  127.      An indefinite number of files may be edited at the same
  128.      time with EDIT. Each file is read into its own area of
  129.      memory referred to as a buffer. Only one buffer is
  130.      displayed at a time, and to edit other buffers the
  131.      
  132.        119 
  133.         The EDIT program 
  134.      
  135.      options "+ next buffer" or "- last buffer" can be
  136.      selected from the main menu. The name of the last file
  137.      loaded from or saved to is written at the bottom of the
  138.      screen for each buffer. If EDIT is initially provided
  139.      with multiple filenames when it is first run then all
  140.      these files will be loaded into different buffers. To
  141.      load in a file into a new buffer while EDIT is running,
  142.      it is necessary to first select the "New buffer" option
  143.      from the menu and then to load a file into that.
  144.      Alternatively buffers which are no longer required can be
  145.      deleted with the "Delete buffer" option (which acts on
  146.      the currently displayed buffer). Any changes made to the
  147.      text in that buffer should be saved first if desired.
  148.      When there is only one buffer it cannot be deleted.
  149.  
  150.      Text can be transferred between buffers by deleting it in
  151.      one buffer by marking a block and then pressing F4, then
  152.      changing to another buffer and undeleting it with the
  153.      CONTROL-F4 key. To copy a block of text to another
  154.      buffer, first mark it with F6, then copy it with F3, then
  155.      delete the still-highlighted block with F4 and finally
  156.      change to another buffer and undelete it with CONTROL-F4.
  157.  
  158.  
  159.      16:5. Working with files
  160.  
  161.      When the "Load file" option is selected then a file
  162.      specification will be requested. This may either be the
  163.      name of the file to load or else a specification which
  164.      can contain the DOS wildcard characters * and ?. Refer to
  165.      your DOS manual for the meanings of these. All files
  166.      matching the specification will be displayed (if the
  167.      filename itself has been entered then only one file will
  168.      match). The desired file can then be selected from the
  169.      list by moving to it and pressing ENTER.
  170.  
  171.      When saving a file or reading or writing a highlighted
  172.      block the exact filename must be specified. Saving or
  173.      writing a file will overwrite any file of the same name
  174.      which might already exist on disk. Loading a file will
  175.      replace the contents of the current buffer, so make sure
  176.      these are saved first if desired. When saving a file the
  177.      default name provided will be that of the last file
  178.      loaded from or saved to, but this name can be altered to
  179.      something else before the file is saved.
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.      
  198.        120 
  199.