PRODUCT : Borland C++ NUMBER : 1767 VERSION : 3.1 OS : DOS, WIN DATE : January 11, 1994 PAGE : 1/1 TITLE : Converting hard tabs to soft tabs The BC++ IDE allows the use of either hard tabs (Ctrl-I) or spaces to indent text, depending on the setting of the editor options and . If the tab spacing is set to a number other than 8, and tab characters are present in the file, then the file will usually not appear as designed when printed to a printer or displayed in Turbo Debugger. This problem can be corrected by ensuring that hard tab characters are not used in the file. To convert all existing hard tabs to spaces, follow these instructions: With the cursor at the top of the souce file,: 1. Invoke Find and Replace (Ctrl-QA or Alt-S R). 2. At the Text to find prompt, press Ctrl-P Ctrl-I; this enters a literal Ctrl-I, which is the equivilent of a tab character. 3. At the New text prompt, enter as many spaces as you normally use to indent your code. 4. Turn off the Prompt on replace option. 5. Turn on the From cursor option. 6. To initiate the tab replacement, select Change All. If you have only converted hard tabs to soft for a print operation and do not want to save the soft tabs permanently in the source file, select Alt-F | Print to print the file, then close the source file window but answer No to the subsequent save file prompt. If you no longer want the IDE to use hard tabs when indenting your code, you can permanently shut this off by going to Options | Environment | Editor and turning off the options and . DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.