About outlining in Structured Text routines
Use outlining to organize a Structured Text routine into collapsible segments. Define segments automatically using automatic outlining, or by marking specific regions.
When automatic outlining is enabled, the editor creates a collapsible outline segment when a line starts with
#region
, if
, while
, repeat
, for
, and case
, and ends with the matching end construct, such as #endregion
or end_if
.View the contents of a collapsed segment without expanding it by hovering the cursor over the segment. To expand and collapse all the segments in a routine at once, on the main menu, select
Edit > Outlining > Expand all outlining
or Edit > Outlining > Collapse all outlining
.Provide Feedback