7

Chapter 2
The Editor
BASIC 2 Plus includes a powerful editor which takes full advantage of the facilities that GEM affords. Many changes have been made since the previous version and these have brought it into line with othereditors which run in a similar environment. If you have used the BASIC 2 editor, you will find this new version quicker and easier to use. If you have never used a ‘cut & paste’ editor before, you will find it to be a straightforward and natural method of entering and amending your tenL

All editing is done in one window the Edit window. This can be used to give a number of different views of the program (selected from the View menu, an we shall see later) but all changes are made in the tent view that BASIC 2PIus starts in.

The Edit window is initially is called Enpty Prugrau, but this title changes to reflect any files you’ve loaded or saved. It must be the active window befure you can use it, so if the window’s title is dimmed, click the mouse anywhere in the window to activate it (You can alsoactivate thewindow by selecting Show Editin the Windowsmenu(orbypressing
in fact, if the window ban been closed, you have toactivate it in this way.)

The text display edit thewindowistimply the tentofthepmgram anityou areediting. If the window isnotwideenough toholdanyofthelines, they willaulomalically wraproand to the next line of the window and a small mark will appear at the beginning and the end of the broken line. This does not imply a new line of the program; program lines are always separated with typedcarriagereturn characters, which are displayedon the screen as V.

Inserting tent is quite straightforward. Click at the point in the program where you wiuh to insert the entratent; thecaruorwill move to thatpiace. Now simply type theadditional tent, and it will be addedatthepesition marked by the carsur.

The Carriage return symbols behave quite logically when you insert lent. If you want to append more characters to the end of a line, you must take care to put the insertion point before the carriageretstrn symbol, or the characters willbe inserted after the carriage return, that is, at the start of the xentline,

The two delete keys can be used to delete characters in two different directions as you’d expect: the key removes the character just before the cursor (that is, the character you’vejust typed), whereas the keyremoves the characterjmtafter it.
BASIC 2 PIus: User Guide & Quick Reference 7

7