fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
INDENT EACH LEVEL OF NESTING
INDENT EACH LEVEL OF NESTING [BY] [:] <integer> COLUMNS INDENT [:] <integer>
fpt indents code to indicate:
This command specifies the number of spaces by which code is indented for each level of nesting.
The MAXIMUM INDENT command specifies the number of levels (not the number of spaces) which are marked by indenting the code.
Indentation is suppressed if a line contains a single token, such as a long string or Hollerith constant, which would be pushed out beyond the maximum length of the code line. The line length is specified by the command OUTPUT CODE LINE LENGTH.
The indent value is displayed by the SHOW FORMAT command and saved to an fsp file by the SAVE FORMAT command.
Where to Use this Command
|Operating system command line||Yes|
|Configuration file, config.fsp||Yes|
|Specification (fsp) files, *.fsp||Yes|
|Interactively, to FPT> prompt||Yes|
|Interactive command files||Yes|
|Embedded in the Fortran code||Yes|
INDENT=3 MAXIMUM INDENT=8
(Note that defaults may be changed in the configuration file)
At the comand-line
$ fpt milatcc %indent=2 "%maximum indent=8"
FPT> indent = 3 FPT> max indent = 6
Copyright ©1995 to 2021 Software Validation Ltd. All rights reserved.