I'm wondering if there's a suggested way to format a terminal command and its output for posting on the site. For example, the Markdown code
```
user@host:~$ date
Sat Apr 13 12:50:49 PDT 2019
```
produces
user@host:~$ date
Sat Apr 13 12:50:49 PDT 2019
This code block doesn't have any colorization or syntax highlighting, which are things often used in terminals to distinguish the prompt, command and output. So I'm wondering if there's a better or more preferred way to format something like this. I've also tried using the following language identifiers
```shell
```bash
```console
but they don't seem to change the result.
On a similar note, I'm wondering if there's a preferred way to denote the prompt. In my example, I used user@host:~$ date
, but I could also use $ date
or something similar.
$
or#
, whichever is appropriate (less distractive that way, and just shows that it's something being typed at an interactive shell prompt).