MarkupInterpolated(FormattableString) Method

Writes the specified markup to the console.

All interpolation holes which contain a string are automatically escaped so you must not call EscapeMarkup(string).

public static void MarkupInterpolated(FormattableString value)
Namespace
Spectre.Console
Containing Type
AnsiConsole

Examples

string input = args[0];
string output = Process(input);
AnsiConsole.MarkupInterpolated($"[blue]{input}[/] -> [green]{output}[/]");

Parameters

FormattableString value
The interpolated string value to write.