fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

INDENT EACH LEVEL OF NESTING

Syntax:

INDENT EACH LEVEL OF NESTING [BY] [:] <integer> COLUMNS INDENT [:] <integer>

Function:

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

Default

INDENT=3 MAXIMUM INDENT=8

(Note that defaults may be changed in the configuration file)

Examples:

At the comand-line

$ fpt milatcc %indent=2 "%maximum indent=8"

Interactively

FPT> indent = 3 FPT> max indent = 6

See Also

INDENT COMMENTS

MAXIMUM INDENT

SAVE FORMAT

SHOW FORMAT

Copyright ©1995 to 2021 Software Validation Ltd. All rights reserved.