FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


LINE NUMBERING

Syntax:

LINE NUMBERING { [ON] | OFF }

NUMBER LINES

Function:

Turns line numbering on or off for the interactive display of code. Lines are numbered from the start of the current file, or from the start of the current sub-program, depending on the way in which the code is examined. The scope of line numbering is determined by the TYPE and SEARCH commands.

LINE NUMBERING ON may also be written as NUMBER LINES.

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

No


Default:

Line numbering is turned on by default. (Note that defaults may be changed in the configuration file)

Example:

FPT> lin numb on
FPT> t 2:5
 
   2         REAL*4 A(3),C(3),DC(3)
   3   !     Set up new integrals
   4         DO I=1,3
   5            A(I)=C(I)+DC(I)*DT
   5 >>      ENDDO
 
FPT> lin numb off
FPT> t 2:5
      REAL*4 A(3),C(3),DC(3)
!     Set up new integrals
      DO I=1,3
         A(I)=C(I)+DC(I)*DT
      ENDDO
 
FPT>

See also:

TYPE

SEARCH


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