MarkupInterpolated(IAnsiConsole, IFormatProvider, 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(this IAnsiConsole console, IFormatProvider provider, FormattableString value)
Namespace
Spectre.Console
Containing Type
AnsiConsoleExtensions

Examples

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

Parameters

IAnsiConsole console
The console to write to.
IFormatProvider provider
An object that supplies culture-specific formatting information.
FormattableString value
The interpolated string value to write.