FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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. This 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:

$ fpt milatcc %indent=2 "%maximum indent=8"    (Command line)

FPT> indent = 3      (Interactively)
FPT> max indent = 6

See also:

INDENT COMMENTS

MAXIMUM INDENT

SAVE FORMAT

SHOW FORMAT


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