Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17167

Code Macro Edit Dialog Should Better Document Supported Languages

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Minor
    • None
    • 11.10.3
    • Rendering - Code Macro
    • None
    • Hard

    Description

      The Code Macro config dialog (in WYSIWYG editor) has a text input field to specify the "language" for code highlighting. Unfortunately, the info text for the box gives no indication what languages are actually supported and / or where to find this information:

      Googling leads to https://extensions.xwiki.org/xwiki/bin/view/Extension/Code%20Macro/ where somewhere in the text is a link to https://pygments.org/languages/ .

      However, this page also does not specify what exact string I have to enter into the text field to e.g. enable "Apache config files" or "E-mail headers" highlighting. I surely won't have to use the strings "Apache config files" or "E-mail headers" as listed on the page, rather something like just "apache" or "apacheconfig" or similar - but how to find out the exact name / label?

      And, in general, if Xwiki uses this Pygments module, which version of it does it use? Does the list on the Pygments web site actually match the list of languages supported by my local LTS documentation?

      Attachments

        Activity

          People

            Unassigned Unassigned
            GOhrner Gunter Ohrner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: