Typically, the syntax highlighter will parse the prompt (e.g., $) at the start of each line, then handle the remaining text using the shell language.
When copying the content of a console source block, it would be great if any leading $ characters could be removed automatically. This would allow users to paste the command(s) into their terminal and run them without alteration.
By convention, much of the Spring portfolio's documentation uses a
$
prefix for source blocks containing shell commands. This prefix is also mentioned in Asciidoctor's own documentation:When copying the content of a
console
source block, it would be great if any leading$
characters could be removed automatically. This would allow users to paste the command(s) into their terminal and run them without alteration.