NEAT v7 04/27/85 COPYRIGHTED 1984, 1985 BY IRV HOFF SRC FUL INL --- --- --- 1) U n/c n/c 2) U n/c L 3) U n/c U * 4) U U U * 5) U L U * 6) U L L * 7) L L L select: * only occurs after matching the requested character string SRC is source code, FUL is full-line and INL is inline comments NEAT is a format program normally used with assembly level source code files. With the first six options it insures all source code is in upper case, the last option puts all source code to lower case. Those options preceeded by an asterisk require the user to enter (up to 15) characters matching the location at which the program should commence. Typing only a RETURN will start the requested changes on the top line. No changes are made between 'single quotes' in any DB string. Upper case text between any "double quotes" will be left intact. All "high bits set" will be removed. In conjunction with FORM, another powerful formatting utility, highly automatic options can be run in just a few seconds giving an entire source code file a very attractive appearance. The user can rapidly experiment (by making test files) to find his preference. NOTE: Byte 0103H sets the CRT line progress display rate: 0F = every 16 lines * 1F = every 32 lines (current default setting) 3F = every 64 lines 7F = every 128 lines NOTE: If changing 103H (via DDT, etc.) then use CTL-C and say: A>SAVE 13 NEAT.COM NORMAL FEATURES: --------------- 1) counts all current tabs, then removes all tabs 2) removes any unneeded trailing spaces or tabs 3) removes any imbedded control characters 2) places tabs every 8 columns wherever possible as long as there is more than 1 space. Does not attempt to put tabs in quoted DB strings and will replace a single space with a tab until encountering a semicolon delimiter. 3) puts all source code to upper case (option 7 puts it lower) 4) changes full-line and inline comments per the menu. Can be started immediately with a "RETURN" or when matching a string of characters supplied by the user. DISPLAYS UPON COMPLETION: ------------------------ total lines in the file original spaces original tabs current spaces current tabs trailing spaces deleted --------------------------------------------------------------------- To use: B>TABS HELLO.TXT (1) B>TABS HELLO.DOC NUNAME.DOC (2) B>TABS A:HELLO.TXT (3) B>TABS A:HELLO.ASM B:NUNAME.ASM (4) (1) Sets tabs in a file named HELLO.TXT. When finished the original file is named HELLO.BAK and the new file has the normal name. (2) The original file keeps the original name. The new file is now named NUNAME.DOC. (3) Just shows you can use two disks. The backup file will be on the same disk as the original and assumes the original name.. (4) The original file remains intact, the new file is on another drive and is named NUNAME.ASM. - notes by Irv Hoff --------------------------------------------------------------------- 04/27/85 Accept lines up to 255 characters long (vice 128). Insures last line has CR-LF to allow normal processing - Irv Hoff 03/07/85 Fixed ERXIT so external file is not deleted unless a 'Y' is used. - Irv Hoff 11/20/84 Initial version, similar style to FILT5, FORM5, and TABS5. - Irv Hoff ---------------------------------------------------------------------