Community
    • Login

    Issues with XML highlighting text

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 2 Posters 61 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 Offline
      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 Offline
          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.

          PeterJonesP 2 Replies Last reply Reply Quote 0
          • PeterJonesP Online
            PeterJones @Jo-Su717
            last edited by PeterJones

            @Jo-Su717 said:

            Do you know if there is there a way to turn this off

            You don’t turn the feature off. You set the background colors of those listed styles to whatever colors (or lack of colors) look good to you. Notepad++ makes those colors easily user-customizable for just this reason. If you don’t like the default color on this, or any other, style, set it to something you do like.

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

              You set the background colors of those listed styles to whatever colors (or lack of colors) look good to you

              …In case you don’t know how…

              Use Settings > Style Configurator > Language: XML

              Start with:
              80f37df4-78d2-45c6-8126-a9dd2eae397e-image.jpeg

              Then right click on the background color for SGML COMMAND:
              936ba570-b411-4e86-a9d6-803e34d3c09f-image.jpeg

              Then right click on the background color for SGML DEFAULT:
              4d30fadf-47e4-4150-9d28-de7e03b32938-image.jpeg

              Easy

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

                @PeterJones I was looking at style for CDATA instead of SGML, so that explains it. Thanks a lot for the help!!

                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