122-32000 Parallax Inc, 122-32000 Datasheet - Page 66

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Align Mode
The Align mode is a special version of the Insert mode designed specifically for maintaining
source code. To understand Align mode, we first need to consider common programming
techniques. There are two very common practices used when writing modern source code:
indention of code and alignment of comments to the right of code. It is also common for
source code to be viewed and edited using more than one editor application. Historically,
programmers have used either tabs or spaces for indention and alignment purposes, both of
which prove problematic. Tab characters cause alignment issues because some editors use
different sized tab settings than others. Both tab and space characters cause alignment issues
because future edits cause right-side comments to shift out of alignment. Here are some
examples; Figure 2-20 is our original code.
If the original code used tab characters to align the comments, changing “
Page 66 · Propeller Manual v1.0
BtnDelay
Figure 2-20: Common Alignment Issues – Original Code
Figure 2-21: Common Alignment Issues – Tab Aligned
If the original code had been made with tab characters to align the comments,
changing “Delay” to “BtnDelay” results in the second comment suddenly being
pushed out by another tab width.
” will cause a comment to shift right if the altered text crosses a tab boundary.
Delay
” to

Related parts for 122-32000