Community
    • Login

    Issues with XML highlighting text

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 29 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Online
      Jo-Su717
      last edited by

      Hi all,
      I am encountering an issue where all instances of “CDATA” are being highlighted and boldened regardless of what is being selected. It appears to affect other other capitalized text as well. I do have the Compare, ComparePlus, and XML Tools plugins enabled. I have tried toggling Language, Preferences, Style config, and Plugin options with no luck. None of the settings seem to suggest that XML: CDATA should be highlighted any color other than orange and changing highlighting preferences doesn’t do anything. I tried restarting my PC and the issue persisted. This was not occurring when I edited text on 7/15, so I am not sure if it is update related. Thanks for any ideas!
      c1598e28-0aa2-4feb-8b9e-97fdeef5e911-image.jpeg

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP Online
        PeterJones @Jo-Su717
        last edited by PeterJones

        @Jo-Su717 ,

        I assume you just upgraded to v8.9.7? If so, if you look at your change.log or the v8.9.7 announcement, you will see it says, 13. Make XML CDATA color different from the enclosed elements. Users wanted to be able to distinguish between the CDATA SGML-command syntax from the data it contains.

        So now, the CDATA style (defaults to orange) only applies to the data contained inside, not the command wrapper itself. SGML DEFAULT is what’s used for the <![ and [ and ]]>, and the word CDATA itself is styled by SGML COMMAND

        <![CDATA[2 blah blah blah]]>
        ^^^     ^                ^^^ = SGML DEFAULT
           ^^^^^                     = SGML COMMAND
                 ^^^^^^^^^^^^^^^^    = CDATA
        

        f1b8b7d9-bde7-4801-9923-aacd9451645a-image.jpeg

        J 1 Reply Last reply Reply Quote 0
        • J Online
          Jo-Su717 @PeterJones
          last edited by

          @PeterJones I see, thank you so much for clarifying! Do you know if there is there a way to turn this off or do I need to revert to the previous version indefinitely? I really like the idea of a different color, but the highlighting itself is incredibly distracting to my work.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors