The information in this article applies to:
SUMMARY
The Programmer's WorkBench (PWB) has two switches called rmargin and
wordwrap that affect behavior within the editor when typing towards
the end of a line. These two switches can be used together to force
line breaks as you type past a specified margin. However, the PWB
documentation for versions 1.0 and 1.1 is somewhat incomplete in
describing exactly how rmargin works.
MORE INFORMATIONTo use rmargin, the wordwrap switch must be set to "yes" to enable word wrapping at the right margin. With wordwrap turned on, the number specified by the rmargin switch controls the right column margin. The C version 6.0 and 6.0a "Microsoft C Reference" manual (page 83) describes the rmargin switch as follows: Controls the right column margin used for wordwrap mode. Any character typed to the right of this margin causes a line break.The C 6.0 and 6.0a online help for rmargin changes the wording of the second sentence above to the following: A space typed to the right of this margin causes subsequent characters to be placed on the following line.In reality, neither of these descriptions is entirely true. There are two ways that an automatic line break will occur:
In some cases, you may want to ensure that you do not have any text after a specified column. This can be done by setting rmargin to six less then the last column in which you want text to appear. A simple formula for this is:
By setting rmargin to a value as indicated by this formula, a line
break will occur if a space is inserted into any of the last six
columns before the column specified by last_column_to_allow_text, or a
word will be moved down to the next line if it extends past
last_column_to_allow_text. Thus, no characters will ever be allowed to
the right of last_column_to_allow_text.
Additional query words: kbinf 1.00 1.10 PWBIss
Keywords : kb16bitonly |
Last Reviewed: October 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |