Our Confluence app Prism Syntax Highlighter for Confluence now supports rendering of Bash and PowerShell command lines. The two new macros (“Prism command line highlighter (Bash)” and “Prism command line highlighter (PowerShell)”) can be used to document command line interactions on any Confluence page.
The new macros accept the command line content as input and renders them in a command line view on the Confluence page.

More information