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

C# (sharp) String syntax in Confluence Code Macro renders incorrect colouring for text within triple quotes.

XMLWordPrintable

      Issue Summary

      C# (sharp) String syntax in Confluence Code Macro renders incorrect colouring for text within triple quotes.

      Steps to Reproduce

      1. Add code macro on a confluence page
      2. Select C Sharp as a language
      3. Add any String syntax enclosed in double quotes, and include one double quote extra within the enclosed text. Example:
        var singleLine = """This is a "raw string literal". It can contain characters like \, ' and ".""";
      • The colouring of the text will not be correct, it should all be green within the double quotes.

      Expected Results

      All the text syntax must be shown in green and an extra double quote should be considered as a text and not as a pre-defined C# syntax.

      Actual Results

      An extra double quote is considered as a pre-defined C# syntax and not a text merely even despite being enclosed in double quotes.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              skhanna@atlassian.com Shubham Khanna
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: