KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q63567: Behavior of Tabs in QuickC 2.50

Article: Q63567
Product(s): See article
Version(s): 2.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | S_QUICKASM | mspl13_c
Last Modified: 9-JUL-1990

The "Keep Tabs" option controls how tabs are displayed on the screen
and saved to disk.

The effect of "Keep Tabs" in the editor is as follows:

With "Keep Tabs" selected all tabs are represented as actual tabs on
the display (HEX 09), that is, when you backspace over a tab, the
cursor leaps to the next tabstop to the left.

When "Keep Tabs" is not selected, a series of spaces (HEX 20) will be
placed on the display instead of an actual tab character, that is,
when you backspace over a tab it moves the cursor only one space to
the left instead of to the next tabstop.

The saved files behave in the following way:

In the saved file with "Keep Tabs" on and with leading whitespace
before the tabs/spaces, tabs will be saved as tab characters (HEX 09)
and spaces will be saved as spaces (HEX 20). With no leading
whitespace, tabs will be saved as tab characters (Hex 09) and spaces
will be saved as spaces (HEX 20).

In the saved file with "Keep Tabs" off and with leading whitespace,
the leading whitespace is converted to tabs (and spaces if necessary),
and all other whitespace is converted to spaces.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.