Community
    • Login

    Finding Matching Brackets

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 32.8k 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.
    • Rowan Sylvester-BradleyR Offline
      Rowan Sylvester-Bradley
      last edited by

      Hi,

      The feature within Notepad++ to identify matching brackets and braces is useful, but not as useful as it could be. here are two improvements that I would like to suggest:

      1. In a PHP file, it would be really useful if the red highlighting in the left margin when you place your cursor on a brace, that helps you find the matching opening or closing brace, continued through HTML sections of the file. Currently in a long PHP file with substantial HTML sections, it can be quite difficult and time consuming to find the matching brace.You basically have to go through the whole file looking for the red brace. With this improvement, it would simply be possible to keep moving up or down until the red line stops. Or you could do binary chops to home in on the correct location.
      2. It would be helpful if you could double click on a brace to take you to the matching brace, or right-click on it and select something from the context menu, or some other such shortcut.

      Thanks - Rowan

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS Offline
        Scott Sumner @Rowan Sylvester-Bradley
        last edited by

        @Rowan-Sylvester-Bradley

        For your second point, doesn’t Search (menu) -> Go to Matching Brace work?

        1 Reply Last reply Reply Quote 1
        • linpengchengL Offline
          linpengcheng
          last edited by linpengcheng

          real-time Matching Current Brackets block:
          https://notepad-plus-plus.org/community/topic/14501/has-a-plugin-like-sublime-plugin-brackethighlighter

          Screenshots:
          https://github.com/linpengcheng/ClojureBoxNpp

          Scott SumnerS 1 Reply Last reply Reply Quote 0
          • Scott SumnerS Offline
            Scott Sumner @linpengcheng
            last edited by

            @linpengcheng said:

            real-time Matching Current Brackets block

            I think the OP is talking about a different use-case (“long file”, “whole file”) than what the script you pointed to provides. The script is for where the opening and closing delimiter are viewable simultaneously in an editing tab.

            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