Programmer's WorkBench (pwb.hlp) (Table of Contents; Topic list)
TOOLS.INI Tagged Section Example
 Description                               Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     The following manually loaded section defines settings and a macro
     to translate tab characters in the file to spaces:
 
          [PWB-detab]
          Filetab :8          ;Tabs expand to 8 spaces
          Entab   :0          ;Translate white space to spaces
          Realtabs:no         ;Do not preserve tabs
          Unixre  :yes        ;Use UNIX regular expressions
          ;  TouchAll - Modify all nonblank lines
          TouchAll:= Begfile Arg Arg Replace "^." Newline "\\0" Newline
          TouchAll:ALT+D      ;Press ALT+D to detab the file
 
     To use this section once it is in TOOLS.INI, follow these steps:
 
       1. Execute Arg 'detab' Initialize to load the 'detab' section of
          TOOLS.INI:
 
               «arg» detab «initialize»
 
          PWB loads the statements from the 'detab' section. Loading
          this section sets the Filetab, Entab, Realtabs, and Unixre
          switches, defines the macro 'touchall', and assigns it to the
          ALT+D key.
 
       2. Execute the touchall macro by pressing ALT+D.
 
          The macro goes to the beginning of the file and uses a regular
          expression to replace the first character on every line with
          that character. This causes PWB to perform the tab translation
          for every nonblank line in the file.
 
     To add tabs instead of removing them, use the definitions above
     except set the Entab switch to 1.
 
     See
 
     Entab, Filetab, Initialize, Unixre, Realtabs
     Semicolon: TOOLS.INI Comment
     Backslash: TOOLS.INI Line Continuation
                                    -♦-