Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-37141

Add support for shell session highlighting in Confluence

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? 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: