13

Chapter 2: The Editsr
Other Features
Options
Selecting Opti onu on theEditmenugivesyouaccesstothreefacilitiesofferedby theeditor:
themeanososurn off lnsert mode, and theAuto-indentfacilisy; it also allows you to set the tab interval. These facilites are described in the next three sections.

Insert Mode
Normally, when you type text into the Edit window, the characters you type are inserted at the cursor, and the rest of the line shuffles along to make room for the insertion. This is generally what you will want Sometimes, though, it is more convenient for the characters typed in to overwrite the characters already on the screen. BASIC 2 Plus allows you Is do this by turning off lnsert mode. This is doneby choosing Optinnx from the Edit menu, and shenselecting Inuert Off.

Or, tosaveusinglhemenus,youcan toggle Ixsertmode(thatis,lum iton ifil’soff,andoffif it’s on) by pressing the key.

Auto-Indent
Some of the new block structures in BASIC 2 PIus (compound IF statements, FOR loops,and soon) are much easier to read if the body of the loop is indented by a couple of spaces. To make it more convenient to type leading spaces at she soot of every line, BASIC 2 Plus provides the Auto-indentoptiox.

When Auto-Indent is turnedon, every timea carriage return is inserted into the program itis automatically followedby enough blank spaces toensare that the firstcharactersyped on the new line is directly under the first characterof the previous line. If the previous line had no leading spaces, no spaces will be generated at the start of the new line. Any or all of the spaces can be deleted if they are notrequired.

Tab Interval
When youpress the key, theeditorinsertsenough spacestotakethecursortothenexttab stop. By default, tab stops are every two character widths across the screen, but you can adjustthis towhatevervalueyou wanthychanging thevalue via Optionn on theflditmenu.

The editor always inserts spaces, not tab characters; this means that you can remove excess space a characterata time if you wish.


BASIC 2 Plus: User Guide & Quick Reference
13

13