Markup

Display

Renders 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
NameTypeDefaultDescription
Appearance
BackgroundColor?Background color. Default is Plain background.
ForegroundColor?Foreground (text) color. Default is Plain foreground.
Common
Contentstring?Text content to render. Content is automatically escaped to prevent markup interpretation.
Other
DecorationDecoration?Text decoration (bold, italic, underline, etc.). Default is None. Combine decorations with bitwise OR.
linkstring?Optional hyperlink URL. When specified, text renders as a clickable link in supported terminals.

API