encase(3)encase - Encase a region with start/end string
n encase "start-string" "end-string"
encase provides a short cut to encapsulate a selected region of text with a start-string and end-string. The command is modal and operates in two different operating modes as follows.
First run encase without a current region section (i.e. no selected highlighted text) and the user is prompted for the start-string and end-string. The user is also prompted if the command has not been run before and the start-string and end-string are undefined.
With the strings defined then select a region with the mouse or keyboard (esc space and move or S-move) to define the start and end point of the region. With a selected region then execute the encase command using esc x encase. This is most effective when bound to a simple key, see global-bind-key(2).
The numeric argument n is used to modify the default behavior of the command, where the bits are defined as follows:
0x01
0x02
0x04
encase is a macro defined in misc.emf.
(c) Copyright JASSPA 2025
Last Modified: 2025/08/31
Generated On: 2025/09/29