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

Add native support for gherkin language in code block macro

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Macros - Other Macros
    • None
    • 1
    • 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.

      Problem

      Currently the code block macro does not support gherkin language.
       

      Suggested Solution

      Add support for it.
       

      Why This Is Important

      Gherkin language is used by a number of customers, it would make the user experience better if gherkin was added a native option to the code block macro.
       

      Workaround

      At the moment it is possible to add additional languages manually

      The Code Block macro uses syntaxhighlighter brushes in the background, in order to add a new language you just need to find a suitable syntaxhighlighter.js file.

      A search for a suitable gherkin file produced this however please be aware that this is from a third party site and has not been verified by Atlassian and you may want to check if there are other more suitable options.

      I installed it locally and tested with some sample code, this is how it was presented when using the code block macro:

      Alternatively a custom file for gherkin could be written using the following documentation:
      https://github.com/syntaxhighlighter/syntaxhighlighter/wiki

       

              Unassigned Unassigned
              7829eff5df87 Dean Norman
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: