Describe interactions between participants with messages, activations, notes, and fragments. Messages appear in order from top to bottom.
This is a two-way editor: type source text to update the diagram, or edit the diagram on the canvas to update the source.
Click an element to select only that element. Ctrl-click / Cmd-click adds or removes an element from the selection. Click empty space or press Escape to clear the selection.
Drag from an inactive area of the canvas to select fully enclosed elements with a rectangle. Enclose a participant's header, not its whole lifeline; enclose a fragment's complete frame. Messages, notes, and else dividers inside a fragment can also be selected independently. Activations and hidden contents of collapsed fragments are not independently selectable. Each rectangle replaces the previous selection.
Existing message-creation and move targets keep their drag actions, including Ctrl/Cmd/Shift message shortcuts. A rectangle starts only where no existing click or drag action applies. Selection does not move elements as a group.
Press Delete to remove the selected elements together. Deleting a participant also removes its interactions. Deleting an expanded fragment keeps its unselected contents; deleting a collapsed fragment also removes its hidden contents. One Ctrl-Z / Cmd-Z restores the entire deletion.
Press Escape to cancel the current interaction. Click in the source editor before using Delete to edit text.
See Editor Instructions for shared toolbar buttons, storage options, presentation modes, undo/redo, and source-editor shortcuts.