I have this recurring dilemma when writing posts involving terminal output which I need to to quote. You see, on one hand, it's a quote; but on the other hand, it's sort-of like code. So here are some options:
Option 1: Just quote it
einpoklum@myhost:~$ whoami einpoklum
Option 2: Treat it as code
einpoklum@myhost:~$ whoami
einpoklum
Option 3: Quote+backquotes+linebreaks
einpoklum@myhost:~$ whoami
einpoklum
Option 4: Quote+pre
einpoklum@myhost:~$ whoami einpoklum
I do want the monospacing, so option 1 is off the table; and I don't like Option 2 since it doesn't indicate quoting - and this is a quote of text generated by something other than myself; so it should look different.
But 3 and 4 are cumbersome. What should I do?
Notes:
- I'm asking about SO as it is now, not about potential new/different functionality.
- When formatting as code it's a good idea to avoid auto-highlighting (as pointed out by @vaultah); but that doesn't help me choose between options.
<!-- language: lang-none -->
before it.<!-- language: lang-bash -->
gives a nice result.code
is something you quote (but maybe the HTML specs tell the contrary, I'm too lazy to check it).