|
|
|
|
|
by xmprt
529 days ago
|
|
I'm not sure about that. There are markdown rendering engines where you can specify the language of a codeblock and it will render with specific CSS based on the language. So you can do something like ```bash ... ``` and it will show the code with newlines prefixed by "$" |
|
```bash assumes content is a valid shell script
```console assumes content is a dialog between a user and a computer, with $ or such prompts and unprefixed program output
Console sessions showing output is why you can't magically auto-prefix every line with a prompt.