Formatting
Basic Text Formatting
You can easily format your text using individual markups. Here is a list of the most important formatting options:
| Command | Shortcut | Markup in text | Result in preview |
|---|---|---|---|
|
Bold |
⌘+B |
|
bold |
|
Italic |
⌘+I |
|
italic |
|
Highlighted |
⌘+# |
|
highlighted |
|
Monospace |
⇧⌘# |
\`monospace` |
|
|
Underlined |
⌘+U |
|
underlined |
|
Strikethrough |
⇧+⌘+X |
|
strikethrough |
|
Superscript |
⌥⇧⌘++ |
|
superscript |
|
Subscript |
⌥⇧⌘+- |
|
subscript |
Inserting Formatting
Each formatting can be inserted in different ways:
-
Directly in the text: Set the start and end markers directly in the text. The markers can contain individual characters, words, sentences, or even entire paragraphs. As soon as a new paragraph begins (through a blank line), a new marker must be set.
-
Shortcuts: Select the text to be formatted. Now press one of the keyboard shortcuts from the table above and the markups will be set automatically.
-
Menu: If you don’t have the table at hand, a look at the "Editor" menu will help. All relevant formatting options are also listed there.
You can also combine formatting. With bold and italic you get bold and italic formatted text. |
Paragraphs and Breaks
In AsciiDoc, paragraphs are separated by a blank line. For special cases, there are additional options:
-
Hard line break: A
+at the end of a line forces a line break without a new paragraph. -
Page break: With
<<<on its own line, you force a page break in PDF. -
Thematic break: With
'''or---you insert a horizontal dividing line.
If you want to display a formatting character in the text without it acting as formatting, place a backslash before it: *not bold* is displayed as *not bold*. |