Auto highlight folding close in a UDL



  • 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



  • @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


Log in to reply