Editing Module Text Specifics

Specifics of the Text Document Editor
Formatting Syntax
Inserting/Deleting the Comment Marker
Inserting/Removing Line Wrapping

When you edit text documents with 1C:Enterprise script extension enabled, the text editor provides additional features that are described below in addition to regular text editing features.

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.

Formatting Syntax

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).

Inserting/Deleting the Comment Marker

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.

Inserting/Removing Line Wrapping

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.

 

See also: 

                  Keyboard Shortcuts

                  Keyboard Shortcuts


Notes

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.

1C:Enterprise Developer's Community