Editors > Screen Editor Reference > Screen Editor Commands > > - Format

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

> - Format (Screen Editor) (m618603+greaterthan.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

> - Format

Indents DataBasic programs and Procs.

Command

>

Action

Press > to execute the Format command. The Status/Command Line prompts:

Program Formatter enter indent size, 0=Exit:3

Enter the number of spaces for each indent or press RETURN to enter the default value of 3. The Status/Command Line prompts:

Indent Comments? :Y

Press N to leave comment lines left flush, or RETURN to have comment lines indented.

Comment

The indents remain when the item is filed unless the Unformat (<) command is used.

Example

The Format command changes the item below as follows:

00012 ROUT: *
00013 FOR X=1 TO 10
00014 PRINT TEXT(X):
00015 LOOP UNTIL Y>Z DO
00016 PRINT ADDEND:
00017 Z=Y/2
00018 PRINT Z
00019 REPEAT
00020 INK=Y+Z
00021 NEXT X
00022 NEWONE: *
00012 ROUT: *
00013      FOR X=1 TO 10
00014         PRINT TEXT(X):
00015         LOOP UNTIL Y>Z DO
00016            PRINT ADDEND:
00017            Z=Y/2
00018            PRINT Z
00019         REPEAT
00020         INK=Y+Z
00021      NEXT X
00022 NEWONE: *

RealityV15.1 (MoTW) Revision 7Comment on this topic