Text Formatting
The web editor provides keyboard shortcuts and a context menu for formatting text in your messages.
Keyboard Shortcutsβ
Select text and use these shortcuts to toggle formatting:
| Shortcut | Format | Yarn Tag |
|---|---|---|
Ctrl+B (Cmd+B on Mac) | Bold | [b]text[/b] |
Ctrl+I (Cmd+I on Mac) | Italic | [i]text[/i] |
Ctrl+U (Cmd+U on Mac) | Underline | [u]text[/u] |
Example:
- Type a message:
This is important text - Select the word "important"
- Press
Ctrl+B - Result:
This is [b]important[/b] text
Pressing the shortcut again on already-formatted text removes the tags. For example, selecting [b]important[/b] and pressing Ctrl+B produces important.
Context Menuβ
Right-click on selected text to open the formatting menu with all available options:
| Option | Tag | Shortcut |
|---|---|---|
| Italic | [i]...[/i] | Ctrl+I |
| Bold | [b]...[/b] | Ctrl+B |
| Underline | [u]...[/u] | Ctrl+U |
| Strikethrough | [s]...[/s] | β |
| Code | [ms]...[/ms] | β |
| Spoiler | [spoiler]...[/spoiler] | β |
| Link... | [link URL]...[/link] | β |
Link Formattingβ
When you select Link... from the context menu, a dialog appears asking for the URL. The selected text becomes the link text.
Example:
- Type:
Visit our website - Select "our website"
- Right-click, choose Link...
- Enter URL:
https://t-plot.com - Result:
Visit [link https://t-plot.com]our website[/link]
All Formatting Tagsβ
Here is the complete list of formatting tags supported in Yarn messages:
Text Stylesβ
[b]Bold text[/b]
[i]Italic text[/i]
[u]Underlined text[/u]
[s]Strikethrough text[/s]
[ms]Monospace text[/ms]
[spoiler]Hidden text[/spoiler]
Linksβ
[link https://example.com]Click here[/link]
URLs inside the link tag do not need to be escaped. Do not replace : with [cl/] inside links β just paste the URL as-is.
Special Charactersβ
| Tag | Displays | Use when |
|---|---|---|
[br/] | Line break | You need a line break within a single message |
[cl/] | : | You need a colon after the speaker separator |
[usd/] | $ | You need a dollar sign in text |
Close All Tagsβ
Use [/] to close all currently open formatting tags at once:
[b][i]Bold and italic text[/]
This is equivalent to:
[b][i]Bold and italic text[/i][/b]