• Login
Community
  • Login

Finding Matching Brackets

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 29.9k Views
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.
  • R
    Rowan Sylvester-Bradley
    last edited by Apr 13, 2018, 9:31 AM

    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

    S 1 Reply Last reply Apr 13, 2018, 11:50 AM Reply Quote 0
    • S
      Scott Sumner @Rowan Sylvester-Bradley
      last edited by Apr 13, 2018, 11:50 AM

      @Rowan-Sylvester-Bradley

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

      1 Reply Last reply Reply Quote 1
      • L
        linpengcheng
        last edited by linpengcheng Apr 17, 2018, 5:35 AM Apr 17, 2018, 5:34 AM

        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

        S 1 Reply Last reply Apr 17, 2018, 12:08 PM Reply Quote 0
        • S
          Scott Sumner @linpengcheng
          last edited by Apr 17, 2018, 12:08 PM

          @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
          3 out of 4
          • First post
            3/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors