There are three formatting buttons in the toolbar: cmd, code, and file. cmd is for setting out commands that take less than one line.
It looks like this
. Using it for text that's more than one line doesn't tend to work well. Part of the point of using them is so that you don't need to enclose your commands in quotes, which tends to generate confusion about whether the quotes should be typed or not. So, instead of saying
(and having the person respond:
Code:
root@freenas2:~ # "zpool status"
zpool status: Command not found.
You can instead say
code tags are for multi-line blocks of pre-formatted text, like actual program code or the outputs of commands like
zpool status
or
smarctl -a
. They look like this:
Code:
root@freenas2:~ # zpool status testpool
pool: testpool
state: ONLINE
scan: scrub repaired 0 in 0h0m with 0 errors on Sun Oct 15 00:00:00 2017
config:
NAME STATE READ WRITE CKSUM
testpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gptid/26127420-527d-11e7-82bf-002590caf340 ONLINE 0 0 0
gptid/26ee23f5-527d-11e7-82bf-002590caf340 ONLINE 0 0 0
errors: No known data errors
root@freenas2:~ #
file tags are used to specify filenames, and look like this:
/mnt/tank/test.txt.