-

Feature Overview: Text Editor

PLCnext Engineer provides a powerful text editor for developing textual code and data type declarations.

This topic contains the following sections:

Overview on the text editor features

Default text editor settings

The default settings for the text editor are defined in the 'Options' dialog that is opened by selecting 'Options' from the 'Extras' menu. In the 'Text Editor' group you can define the default settings for, e.g., the word wrap, the display of line numbers, the indentation, tab size, etc.

Split view

Splitting the editor worksheet allows you to view two areas of the same worksheet at the same time. When split, both areas can be scrolled independently. By dragging the split border (grey line between the two areas), the splits can be resized.
To split the worksheet, either double-click or drag the split icon on top of the right vertical scrollbar (see the first figure below). To cancel the split and show a single view, either double-click the split border or drag the split border to the top or bottom.

Expanded / collapsed editors area

PLCnext Engineer provides two possibilities for maximizing the editors area. Both are executed by the maximize icon which is available in each editor window (see (1) in the following figure) and in the tab bar of the editors area (2):

Maximize icon (1) enlarges the current editor window to fit the entire screen.
Icon (2) at the right side in the tab bar of the editors area maximizes the entire editors area including the editor group tab bar. This command is also available in the 'View' menu.

In both cases, PLANT and COMPONENTS are hidden. By hovering the mouse pointer to the title bar of the hidden PLANT or COMPONENTS area, it is expanded. Double-clicking an element in the expanded area first opens the related editors group and then hides the area again.
To exit the maximized editor mode, click the respective maximize icon again.

Note
Both maximize functions can be combined.

Pin/unpin particular editors

You can open several editor windows in the editors area at the same by pinning them. Only if pinned, an editor window remains visible when another editor window is opened. If an editor window is unpinned, it disappears when you open another editor.

To pin an editor window, right-click the editor window tab and select 'Pin Editor' from the context menu. Pinned editors are marked with the pin icon on the tab. To unpin, select 'Unpin Editor' from the context menu. Both commands are also available as icons in the upper right corner of the editor window:
and

Details and example