Comments and folds (KRC)
This page describes the functions of the KRC editor which work with the selected lines of a program: Both functions are in the menu KRC and in the context menu of the editor.
KRC » Comment / uncomment selected text (Ctrl + /) and Make FOLD from selected text
The same functions in the context menu of the editor

▲ Comment / uncomment selected text

Ctrl + / comments (;) or uncomments the current line or all lines of the selection.
The bodies of the folds P1 and SET OUTPUTS commented - the fold lines are not changed

▲ Make FOLD from selected text

Puts the selected lines into a new fold:
;FOLD name ... selected lines ... ;ENDFOLD (name)
The dialog asks for the name of the fold. The name can be empty (a fold without name) and can not contain ;. The field Result shows the new fold lines, below is the number of lines put into the fold.
Make FOLD from selected text - name of the new fold
OptionDescription
Fold name Text shown in the collapsed fold. Empty - fold without name.
Hidden fold (;%{h}) Adds the attribute H: ;FOLD name ;%{h}. A hidden fold is not shown to the operator on the SmartHMI and can not be changed there (it is used for the hidden parameters of inline forms). Unchecked by default - a user fold normally has no attribute. The last choice is remembered.
The new fold SET OUTPUTS
The fold is not created when: When the selected lines are inside a fold and Protect Folds is on, the editor asks whether the new fold should be created inside this fold.
The selection contains a part of a motion point - the fold is not created

▲ Format indentation

KRC » Format indentation (also in the context menu of the editor) sets the indentation of the selected lines - or of the whole program, when nothing is selected - by the KRL control structures:

▲ Motion points inside folds

A motion point (the fold of an inline form with PTP / LIN / CIRC) is recognized only on the top level of the program. A point inside another fold is not in the point table and its coordinates can not be edited. For safety, motion points should not be put into folds:
Warning 2511 - a motion point inside the fold MOJ FOLD

▲ Signal descriptions panel

The panel of signal descriptions (long texts) shows Not found with a warning icon when no descriptions were found for the robot, instead of a loading indicator.
No signal descriptions found