fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
INDENT COMMENTS
Syntax:
[DO NOT] INDENT COMMENTS COMMENTS AS WRITTEN
Function:
The commands INDENT COMMENTS and COMMENTS AS WRITTEN instruct fpt whether or not to indent line comments to the same column as the Fortran code, according to the following rules:
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 a PROGRAM, MODULE, BLOCK DATA, SUBROUTINE, FUNCTION, OPTIONS, OPTION or PAGE 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 2024 Software Validation Ltd. All rights reserved.