The markProtect parameter can be used to query or set the protect attribute of a mark. If a mark is protected, you will not be able to delete or change any of the elements associated with the mark. You will also be unable to insert new non-show elements between two elements contained within the protected mark.
query command
set command
The specified mark in the current view.
query markProtect.[name | #id] set markProtect.[name | #id] { on | off }
name | Use the name parameter to specify the name of an existing mark. Mark names may contain any characters but spaces and may not start with the # character. |
id | Use the id parameter to specify the id of an existing mark. |
on | Use the on parameter to indicate that the specified mark should be protected. |
off | Use the off parameter to indicate that the specified mark should not be protected. |
If you do not specify a mark name or a mark id, the last mark created will be used.
query markProtect.test set markProtect.test on set markProtect.#3 off