Lahey Fortran

User-Defined Collapsible Regions

User-defined Collapsible Regions can make the chore of navigating through sections of source code easier by allowing you to collapse a region of code into a single line.

Syntax

         !#region [region-name]
...
!#endregion

Where:

region-name is the name of the region.

Remarks

"!#region" and "!#endregion" must be the first non-whitespace on the line, and should be not be combined with any other comments.

The Fortran compiler treats these lines as comments.

The region can then be collapsed by clicking on the minus symbol in the margin next to the !#region line. To expand the region, click the plus symbol in the margin.

Example



Collapsed:

See Also

Expandable Code