home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / BASIC / POWBASIC / LIBRARY5 / INDENT.ZIP / INDENT.DOC next >
Text File  |  1990-08-16  |  2KB  |  57 lines

  1.  
  2.  
  3.                 INDENT
  4.                 ------
  5.            The Basic Programmers Best Friend
  6.  
  7.  
  8.     INDENT will help basic programmers using either the Turbo
  9. Basic(tm) language by Borland or Power Basic(tm) by Specta Publishing and
  10. most likely any basic language source code stored in ascii format.
  11.  
  12.     What INDENT will do is properly indent the following:
  13.     ------------------------------------------------------    
  14.                 FOR               NEXT  
  15.                 DO                LOOP  
  16.               WHILE             WEND  
  17.            IF       THEN     ELSE     ELSEIF     END IF
  18.         ------------------------------------------------------
  19.     INDENT  will detect the apostrophe REMark delimiter
  20.     ------------------------------------------------------
  21. Good structured programming technique stresses the importance of
  22. indentation within looping and conditional structures.  However,
  23. remaining aware of the proper placement of indentations can be
  24. time consuming as well as distracting.  INDENT will actually help
  25. you find those errors in logic by better illustrating the more 
  26. complex nested structures.
  27.  
  28. I use INDENT regularly and find it to be a great time saver. I'm sure
  29. you will enjoy the same results.
  30.  
  31. INDENT is well error trapped and for the most part will display the
  32. appropriate error messages.  However, neither the author, or KDS
  33. Solutions will be held responsible for any damage arising out of the
  34. use, non-use, misuse, or abuse of the product.
  35.  
  36.                 USING INDENT    
  37.                 ------------
  38. To use indent simply type "indent" from the command line.  You will
  39. be prompted for the source filename.  Any normal DOS path\filename
  40. (and its extension,if there is one) will do.  The file must be in
  41. ascii format.
  42.  
  43. Next you will be prompted to enter the destination filename.  You may
  44. supply any valid Dos path\filename as before.  HOWEVER, you must
  45. specify a different filename than the source.  By different, I mean
  46. you can merely change the extender.  This is for your own piece of
  47. mind.
  48.  
  49. The program indents three spaces for each level of nexting.  I choose
  50. this number based on overall appearance, efficiency, and laziness.
  51. The program will display the message "Working..." until such time
  52. the new file is created.
  53.  
  54. If there is enough interest in this utility, I will supply a version
  55. that allows you to pass command line parameters suitable for use in
  56. batch files.
  57.