Markup
DisplayRenders styled text with markup.
@using Spectre.Console
@using RazorConsole.Components
<Rows>
<Markup Content="Emphasize important labels" Foreground="@Color.Chartreuse1" Decoration="@Decoration.Bold" />
<Markup Content="Callouts can be dimmed" Foreground="@Color.Grey70"
Decoration="@(Decoration.Dim | Decoration.Italic)" />
<Markup Content="Link to the repository" Foreground="@Color.DeepSkyBlue1" Decoration="@Decoration.Underline"
link="https://github.com/LittleLittleCloud/RazorConsole" />
</Rows>Parameters
5| Name | Type | Default | Description |
|---|---|---|---|
Appearance | |||
Background | Color? | — | Background color. Default is Plain background. |
Foreground | Color? | — | Foreground (text) color. Default is Plain foreground. |
Common | |||
Content | string? | — | Text content to render. Content is automatically escaped to prevent markup interpretation. |
Other | |||
Decoration | Decoration? | — | Text decoration (bold, italic, underline, etc.). Default is None. Combine decorations with bitwise OR. |
link | string? | — | Optional hyperlink URL. When specified, text renders as a clickable link in supported terminals. |