Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-37141

Add support for shell session highlighting in Confluence

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      The code macro in confluence allows to highlight many languages and is quite useful, but often I've found that I need to describe bash shell sessions in confluence.

      The closest highlighter that Confluence has for this is bash, but it interprets all of the lines as shell script and can not be used to show output from a shell session in the code block.

      Ideally, the shell session highlighter would only treat lines starting with #, $, > or user@linuxbox (or anything that looks like a command prompt) as code and all the rest as comments or output.

      There's pretty good overview of different highlighting options and their expected effects in this Pygments shell-session lexer demo (or just see the[ comparison of different "modes" of highlighting|http://jann.cc/pygments-shell-session-lexer-demo/shell_code_comparison.html]).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              2d140464bca5 Roland Tepp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: