Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-70943

Code macro for xml does not properly syntax highlight comments

XMLWordPrintable

      Summary

      The code macro for xml does not properly highlight commented out lines if the comment contains an xml tag. The syntax highlighting is looking for > instead of --> to end the comment highlight.

      Environment

      Cloud

      Steps to Reproduce

      1. Create a comment or issue body with the bellow macro content:
        {code:xml}
        <xml1>some stuff</xml1>
        <!--comment with no tags-->
        <!--<xml1>comment with tags</xml1>
        {code}
        

      Expected Results

      The commented line highlighting should extend all the way up to and including the -->

      Actual Results

      The comment highlighting ends incorrectly with the first > in the line

      Notes

      What ever logic being used for comment highlighting seems to be looking only for > to signal the end of the commented line instead of -->

      Workaround

      None

              Unassigned Unassigned
              nwolfgang Battlebeard (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: