Formatting and code blocks
The Formatting button under the message box shows a toolbar. Select words and press a button, or use the keys:
| Format | Keys | As you type it |
|---|---|---|
| Bold | Ctrl+B | *bold* |
| Italic | Ctrl+I | _italic_ |
| Strikethrough | Ctrl+Shift+X | ~struck~ |
| Inline code | Ctrl+E | Wrap it in single backticks |
| Link | Ctrl+Shift+U | [words](https://example.com) |
| Bulleted list | Ctrl+Shift+8 | Start lines with - |
| Numbered list | Ctrl+Shift+7 | Start lines with 1. |
| Quote | Ctrl+Shift+9 | Start lines with > |
Preview shows the message as it will look before you send it.
Code blocks#
Press Code block, or type three backticks on a line, your code, and three
backticks to close it. To colour the code, put the language's name right after
the opening backticks, on the same line, such as python. These languages get
colours:
- JavaScript (
javascript,js,jsx) and TypeScript (typescript,ts,tsx) - JSON, HTML (
html,xml,markup) and CSS - Python (
py), Go, Rust (rs), Java, C (c,h), C++ (cpp) and C# (cs) - Shell (
bash,sh,shell), SQL, YAML (yml) and Dockerfile (docker) - Diff (
patch), Markdown (md), Ruby (rb) and PHP
OwnBase knows many more names, such as kotlin, swift, toml or text.
It hides those and shows the code without colours. A word it does not know
stays as the first line of your code.