Community
    • Login

    Auto highlight folding close in a UDL

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 529 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.
    • Phred DoolittleP Offline
      Phred Doolittle
      last edited by

      I created an UDL and have “Folding in code 2 style” with Begin for the Open and End for the close.

      It works great and all of the rest UDL is highlighting as expected.

      I want to know if there’s a way to highlight the corresponding End when I click on the Begin.
      The same way when you click in the opening tag in XML it highlights the closing tag…
      9fffeb59-c9cd-4a9f-8084-61c426b033b6-image.png

      323582ee-f841-4196-95a4-3c5fda066474-image.png

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @Phred Doolittle
        last edited by

        @Phred-Doolittle said in Auto highlight folding close in a UDL:

        I want to know if there’s a way to highlight the corresponding End when I click on the Begin.

        Unfortunately, I do not think there is a way to do that. That behavior is controlled by the Settings > Preferences > Highlight Matching Tags feature in combination with the HTML or XML lexer being selected; there isn’t a similar feature in the UDL.

        It’s more subtle, but the code-folding does show some highlighting:
        inner block: 15789a45-a42e-4912-b3cb-132ee32dfede-image.png
        outer block: 102984f4-91d9-4d1f-a1a3-d17a7d907dbe-image.png
        Notice that the red fold lines are red for the active section, and are grey for the inactive section

        1 Reply Last reply Reply Quote 2

        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