Tools - Embrace with text, or remove the embrace

This tool allows you to quickly enclose the selected text in the current document with text. It is also possible to remove the envelope, e.g. with comments, etc.

You will open the tool window from the Main menu / Edit / Selected text on... , from the Links, Text and Formatting toolbar, as well as from the editor's context menu.

The tool window contains two groups, only one of which can always be active:

  • Embrace by text
  • Remove the embrace

Embrace by text

If you check the Embrace by text option, the following options are available:

Embrace left with text, Embrace right with text
Specify the texts to be covered by the highlighted section (left and right respectively)

Embrace on both sides with the same text
Check this option if you want to use the same text on both sides of the selected section. In this case, the text defined for the left side will be used, the text box for the right side will be disabled.

Insert at the beginning (ending) of each line
Check if the given texts are to be inserted not only at the beginning and end of the selected passage, but also at the beginning and end of each line of the selected text passage.

Remove the embrace

If you select Remove the embrace, the program will find the following texts in the selected section (left and right respectively) and remove them.

Both texts must occur in the order specified (i.e. first the left text, then the right text). This means that if the text specified for the right side occurs first, it will not be removed.

If there are more occurrences of the specified texts in the selected passage, all their occurrences will be deleted.

This makes it possible, for example, to delete comment characters without having to go sequentially to the beginning and end of the comment in the document.

Remove the embrace from the left, Remove the embrace from the right
Specify the texts to be found and removed from the selected passage.

Related topics

To top