home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / cdactual / demobin / share / program / Pascal / BEAUTIFY.ZIP / BEAUTIFY.DOC next >
Encoding:
Text File  |  1991-01-01  |  5.2 KB  |  201 lines

  1.  
  2. RESPONSE FILE
  3. A response file contains a list of command line options, each on a seperate
  4. line. This allows to user to reconfigure BEAUTIFY without having to type long
  5. command lines. Anything on a command line except input and output file
  6. specifications can be in a response file. This includes other response file
  7. specifications, identifier file specifications as well as options. Options
  8. must not include the leading flag character (- or /) while file specifications
  9. must.
  10.  
  11. IDENTIFIER FILE
  12. An identifier file contains identifiers (on seperate lines) that the user
  13. wants treated specially in regard to case.
  14.  
  15. OPTIONS
  16.  
  17. -a n
  18.      Sets the column that comments are aligned at.  Any comment
  19.      starting at a column to the right of the comment threshing
  20.      column will be aligned.  Default: 50
  21.  
  22. -b+, -b-
  23.      Determines whether builtin indentifiers will be handled
  24.      specially.  If so, the file BUILTINS.DAT will be read in and
  25.      whenever an indentifier is found matching (case ignored) an
  26.      identifier in this file, it will be output as it is
  27.      specified in the file.  Default: -b+
  28.  
  29. -cc n
  30.      Sets the number of spaces that a continued comment is
  31.      indented relative to the first line of the comment.
  32.      Default: 2
  33.  
  34. -ci n
  35.      Sets the number of spaces that a continued statement is
  36.      indented relative to the first line of the statement.
  37.      Default: 8
  38.  
  39. -ct n
  40.      Sets the comment threshing column.  Any comments starting to
  41.      the right of this column will be aligned to the column
  42.      specified by -a.  Default: 6
  43.  
  44. -e n
  45.      Sets the number of spaces to be placed before END statements
  46.      that are not at the start of a line.  Default: 2
  47.  
  48. -f+, -f-
  49.      Enables/disables the placing of a space between a procedure
  50.      or function name and its parameter list.  Default: -f-
  51.  
  52. -i n
  53.      Sets the number of spaces by which to indent each level.
  54.      Default: 2
  55.  
  56. -l n
  57.      Sets the maximum length of output lines.  Default: 125
  58.  
  59. -m n
  60.      Sets the size (in characters) of the left margin.  This
  61.      number of spaces will be prepended to each line of output.
  62.      Default: 0
  63.  
  64. -n+, -n-
  65.      Determines if an END statement will cause a new line of
  66.      output to be started.  Also determines if body closer (e.g.
  67.      END, UNTIL) will be unindented with respect to the body.
  68.      Default: -n+
  69.  
  70.      With -n+ code would look like:
  71.  
  72.           begin
  73.                repeat
  74.                     foo(x);
  75.                until x > 5
  76.           end;
  77.  
  78.      With -n- the same code would be:
  79.  
  80.           begin
  81.                repeat
  82.                     foo(x);
  83.                     until x > 5   end;
  84.  
  85. -o+, -o-
  86.      Enables/disables the starting of a newline after a case
  87.      constant and the indenting of the statement part of the
  88.      case.  Default: -o-
  89.  
  90.      With -o+ code would look like:
  91.  
  92.           case x of
  93.                1:
  94.                     y := 1;
  95.                2:
  96.                     begin
  97.                          foo(x);
  98.                     end;
  99.           end;
  100.  
  101.      With -o- it would be:
  102.  
  103.           case x of
  104.                1: y := 1;
  105.                2: begin
  106.                     foo(x);
  107.                end;
  108.           end;
  109.  
  110. -p+, -p-
  111.      Enables/disables the indenting of all of a procedure or
  112.      function definition, except the header itself.  Default: -p-
  113.  
  114. -r+, -r-
  115.      Causes reserved words to be output in upper/lower case.
  116.      Default: -r-
  117.  
  118. -s+, -s-
  119.      Enables/disables simple statements following a THEN, ELSE,
  120.      or DO to be 'snuggled' up to the corresponding THEN, ELSE,
  121.      or DO.  Default: -s-
  122.  
  123.      With -s+ code would be like:
  124.  
  125.           if x then foo(x)
  126.           else begin
  127.                foo(y);
  128.           end;
  129.  
  130.      With -s- it would be:
  131.  
  132.           if x then
  133.                foo(x)
  134.           else begin
  135.                foo(y);
  136.           end;
  137.  
  138. -sd+, -sd-
  139.      As with -s- and -s+, but only effects the snuggling up to
  140.      DOs.  Default: -sd-
  141.  
  142. -si+, -si-
  143.      As with -s- and -s+, but only effects the snuggling up to
  144.      THENs and ELSEs.  Default: -si-
  145.  
  146. -t n
  147.      Sets the tab width for the input file.  Default: 5
  148.  
  149. -w+, -w-
  150.      Enables/disables the insertion of a BEGIN-END pair around
  151.      structured statements that are controlled by another
  152.      structured statement.  Default: -w-
  153.  
  154.      For this example the following input is assumed:
  155.  
  156.           if v then
  157.                if w then
  158.                     x
  159.                else
  160.                     y
  161.           else
  162.                z;
  163.  
  164.      With -w+ this would become:
  165.  
  166.           if v then begin
  167.                if w then
  168.                     x
  169.                else
  170.                     y
  171.           end else
  172.                z;
  173.  
  174.      With -w- it would be unchanged.
  175.  
  176. -z+, -z-
  177.      Enables/disables strip blank lines between the
  178.      procedure, function, constructor, or destructor
  179.      and it's body. Default: -z-
  180.  
  181.      For example:
  182.  
  183.      procedure MyExitProc;
  184.  
  185.      var
  186.        I: Integer;
  187.  
  188.      begin
  189.        { statement... }
  190.      end;
  191.  
  192.      With -z+ it would be
  193.  
  194.      procedure MyExitProc;
  195.      var
  196.        I: Integer;
  197.      begin
  198.        { statement... }
  199.      end;
  200.  
  201.      With -z- it would be unchanged.