Skip to content

Commit 01f5ce7

Browse files
authored
Merge pull request #549 from jherrman/codeblocks-improving-example
Improving the adoc example for Commands in code blocks
2 parents 8ab6758 + fd32eff commit 01f5ce7

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

supplementary_style_guide/style_guidelines/formatting.adoc

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,24 @@ By default, use bold formatting for commands in code blocks to visually distingu
1313
To apply formatting in a code block, you must use the `quotes` link:https://docs.asciidoctor.org/asciidoc/latest/subs/apply-subs-to-blocks/[AsciiDoc substitution].
1414
====
1515

16-
.Example AsciiDoc: A command and its output in separate code blocks
16+
*Example AsciiDoc: A command and its output in separate code blocks*
1717

18-
Verify that the `libvirt` default network is active and configured to start automatically:
18+
[literal]
19+
--
20+
Verify that the `libvirt` default network is active and configured to start automatically:
1921

20-
[subs="+quotes"]
21-
----
22-
# *virsh net-list --all*
23-
----
22+
[subs="+quotes"]
23+
----
24+
# *virsh net-list --all*
25+
----
2426

25-
[subs="+quotes"]
26-
----
27-
Name State Autostart Persistent
28-
--------------------------------------------
29-
default active yes yes
30-
----
31-
27+
[subs="+quotes"]
28+
----
29+
Name State Autostart Persistent
30+
--------------------------------------------
31+
default active yes yes
32+
----
33+
--
3234
3335
This example renders as follows in HTML:
3436

0 commit comments

Comments
 (0)