mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-18 08:15:48 +08:00
Add various exception improvements
This commit is contained in:
committed by
Patrik Svensson
parent
39a8588dc3
commit
68e92f3365
@@ -43,6 +43,12 @@ AnsiConsole.Markup("[[Hello]] "); // [Hello]
|
||||
AnsiConsole.Markup("[red][[World]][/]"); // [World]
|
||||
```
|
||||
|
||||
You can also use the `SafeMarkup` extension method.
|
||||
|
||||
```csharp
|
||||
AnsiConsole.Markup("[red]{0}[/]", "Hello [World]".SafeMarkup());
|
||||
```
|
||||
|
||||
# Setting background color
|
||||
|
||||
You can set the background color in markup by prefixing the color with
|
||||
|
||||
Reference in New Issue
Block a user