Editing Module Text Specifics
In this mode, the text editor highlights program module syntax elements with colors. Some syntax constructions are automatically grouped. You can manage displaying using special markers to the left of the first group line or Text – Grouping submenu commands.
The 1C:Enterprise system text editor provides automatic formatting functions for 1C:Enterprise script control directives.
In addition to automatic module text formatting during input, you also can format previously entered text. To do so, select the text block you want to format, and use Text – Block – Format. The text editor will then analyze the module text and format it so that the contents of each syntax construct will be shifted to the right based on the tab size, regardless of the original line placement (leading spaces).
For switching large module fragments off (and on), it is convenient to use the mode of automatic setting comment markers for all selected block lines.
To do this, select the text block and use Text – Block – Add Comment or Text – Block – Delete Comment.
When typing string constants, the "|" symbol is used to wrap the line.
You can easily add or delete this symbol to/from highlighted lines using the text editor.
To insert/delete the line wrap symbol for all lines within the selected block, or for the current line (without selecting it), select the area and use Text – Block – Add Line Wrap to insert the symbol, or Text – Block – Delete Line Wrap to delete it.
The line wrap symbol will be inserted in the leftmost significant position (other than space or tab character) of each line.
A form can contain Text Document Field controls for which the Extension property is set to "1C:Enterprise Script". In the 1C:Enterprise mode, the text editor highlights syntax constructions there. But context tips and syntax assistant are unavailable.