FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


MAXIMUM INDENTATION NESTING LEVEL

Syntax:

MAXIMUM INDENTATION NESTING LEVEL [:] <integer>

Function:

FPT indents code to indicate:

The INDENT directive specifies the number of spaces by which code is indented for each level of nesting.

The MAXIMUM INDENTATION NESTING LEVEL directive specifies the number of levels (not the number of spaces) which are marked by indenting the code. The maximum number of spaces may be set by the command MAXIMUM NUMBER OF SPACES TO INDENT

The MAXIMUM INDENTATION NESTING LEVEL value is displayed by the SHOW FORMAT command and saved to a 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 INDENTATION NESTING LEVEL=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

MAXIMUM NUMBER OF SPACES TO INDENT

SAVE FORMAT

SHOW FORMAT


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