AnsiMarkup Class

Definition

Formats strings using a lightweight markup syntax and emits ANSI/VT sequences.

public sealed class AnsiMarkup

Remarks

Supported syntax:

  • [red], [bold], [underline], [bold yellow on blue]
  • [/] closes the most recent tag (nesting is supported).
  • [[ escapes a literal [, and ]] escapes a literal ].
  • Colors: basic-16 names and bright* variants (e.g. brightred, bright-red), plus #RRGGBB.
  • Background: on <color>, bg:<color>, or bg=<color>.
Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (6)

Properties (1)

Methods (11)