mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00

* HighlightService was modified to support GetClassifiedSpansAsync method * Updated Program.cs to pull in the proper location of the Json and ImageSharp extension projects * Statiq must have changed how they are doing xrefs, so I adjusted those to be more specific with a few links
55 lines
1.5 KiB
Markdown
55 lines
1.5 KiB
Markdown
Title: Styles
|
|
Order: 1
|
|
Description: "*Spectre.Console* makes it easy to write text with different styles beyond colors. Depending on your terminal, it can make it easy to use styles such as"
|
|
Highlights:
|
|
- Bold, Italic, Underline, strikethrough
|
|
- Dim, Invert
|
|
- Conceal, slowblink, rapidblink
|
|
- Links
|
|
Xref: appendix-styles
|
|
---
|
|
|
|
Note that what styles that can be used is defined by the system or your terminal software, and may not appear as they should.
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<td><code>bold</code></td>
|
|
<td>Bold text</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>dim</code></td>
|
|
<td>Dim or faint text</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>italic</code></td>
|
|
<td>Italic text</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>underline</code></td>
|
|
<td>Underlined text</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>invert</code></td>
|
|
<td>Swaps the foreground and background colors</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>conceal</code></td>
|
|
<td>Hides the text</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>slowblink</code></td>
|
|
<td>Makes text blink slowly</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>rapidblink</code></td>
|
|
<td>Makes text blink</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>strikethrough</code></td>
|
|
<td>Shows text with a horizontal line through the center</td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>link</code></td>
|
|
<td>Creates a clickable link within text</td>
|
|
</tr>
|
|
</table> |