| title | Markup |
|---|
Markup renders XenoAtom.Ansi markup text as a visual (with wrapping and styling).
new Markup("[bold]Hello[/] [gray]world[/]!");See Markup for the full markup syntax reference (tags, colors, escaping, semantic tokens).
- Markup syntax and parsing are provided by XenoAtom.Ansi (
AnsiMarkup). Terminal.UI converts markup into styled runs and renders them into aCellBuffer. - Use
Markupwhen you want inline color and text styles without building a full visual tree. - Terminal.UI themes also provide semantic tokens such as
[primary],[success],[warning], and[error].
- Default alignment:
HorizontalAlignment = Align.Start,VerticalAlignment = Align.Start
Markup supports mouse selection over the rendered plain text:
- drag with the left mouse button to select a range
- double-click to select a word
Ctrl+Ccopies the active selection
Selection is enabled by default. Set IsSelectable = false to opt out.
