UI module

Text_Mark

structextensionexperimentalsince 0.31.0Source

A range of the text drawn with a background: search results, diagnostics, matching brackets.

Example↗
marks := Text_Mark.[.{ start = 4, end = 9, color = rgb(255, 220, 0, 90) }];
options := Editor_Options.{ marks = marks };

This one is only checked to compile, not run.

Fields

start: int
byte offsets in the whole text
end: int
color: Color
underline: bool
a wavy-style underline instead of a background

See also