FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


INDENT COMMENTS

Syntax:

[DO NOT] INDENT COMMENTS

COMMENTS AS WRITTEN

Function:

The command INDENT COMMENTS instructs FPT whether or not to indent line comments to the same column as the Fortran code, according to the following rules:

  1. The comment delimiter remains in column 1.
  2. If the code is written in free format, or the first printing character after column 1 of the original comment occurs after column 6, or after the first TAB character, the first printing character is indented to the same depth as the Fortran code.
  3. If the the code is written in fixed format and the first printing character after column 1 of the original comment occurs in or before column 6, and before the first TAB character, the comment is transcribed in the original position.

These commands do not change the indentation of comments in the file header. Indentation of header comments is controlled by the command [DO NOT] INDENT HEADER COMMENTS. The file header consists of comment and blank lines which precede the first code statement in a file other than an OPTIONS, PROGRAM, BLOCK DATA, SUBROUTINE, FUNCTION or MODULE statement.

The command COMMENTS AS WRITTEN or DO NOT INDENT COMMENTS instruct FPT to transcribe line comments to the same columns as in the original source, regardless of the indentation of the code.

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 COMMENTS

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


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