mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Add AsciiCast demos for docs
This commit is contained in:

committed by
Patrik Svensson

parent
69fdae70c0
commit
46abadaccb
@ -9,9 +9,7 @@ You can make exception a bit more readable by using the `WriteException` method.
|
||||
AnsiConsole.WriteException(ex);
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
<?# AsciiCast cast="default-exception" /?>
|
||||
|
||||
## Shortening parts
|
||||
|
||||
@ -25,7 +23,7 @@ AnsiConsole.WriteException(ex,
|
||||
ExceptionFormats.ShortenMethods | ExceptionFormats.ShowLinks);
|
||||
```
|
||||
|
||||

|
||||
<?# AsciiCast cast="shortened-exception" /?>
|
||||
|
||||
## Customizing exception output
|
||||
|
||||
@ -51,4 +49,4 @@ AnsiConsole.WriteException(ex, new ExceptionSettings
|
||||
});
|
||||
```
|
||||
|
||||

|
||||
<?# AsciiCast cast="custom-colors-exception" /?>
|
||||
|
Reference in New Issue
Block a user