• Login
Community
  • Login

Problem (for me) with Brackets Check.

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
5 Posts 5 Posters 673 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.
  • B
    Bob Selby
    last edited by Mar 22, 2023, 3:20 AM

    Is there a variant of the “Brackets Check” plugin that does NOT try to match within comments ??

    I get a lot of false (to me) detections in comments in “C” and “C++”.

    Regards,
    Bob

    E 1 Reply Last reply Mar 22, 2023, 12:21 PM Reply Quote 0
    • E
      Ekopalypse @Bob Selby
      last edited by Ekopalypse Mar 22, 2023, 12:21 PM Mar 22, 2023, 12:21 PM

      @Bob-Selby

      I don’t use the “Brackets Check” plugin, but the built-in functionality of Npp, and it seems that it does what you need.

      c6050e41-bbc8-4927-87c9-f734c552a247-image.png

      A 1 Reply Last reply Mar 22, 2023, 12:31 PM Reply Quote 2
      • A
        Alan Kilborn @Ekopalypse
        last edited by Mar 22, 2023, 12:31 PM

        @Ekopalypse said in Problem (for me) with Brackets Check.:

        but the built-in functionality of Npp

        This would be “moving the caret next to one of the braces to see the other one highlighted in a special way”.

        Note, however, if the ARE matching brackets inside the commented part, they WILL be matched by this feature:

        void main() {
            //{   }   
        }
        
        M 1 Reply Last reply Mar 22, 2023, 2:20 PM Reply Quote 3
        • M
          Mark Olson @Alan Kilborn
          last edited by Mar 22, 2023, 2:20 PM

          @Alan-Kilborn
          Agreed, and think this is a desirable feature. In some other text editors when I’m writing something like a regular expression or stringified JSON, it’s really hard to tell when I’ve matched all the parentheses or brackets.
          But Notepad++ not only lets me know when all the brackets inside the string match, it does so without giving false positives/negative bracket matches for block delimiting brackets in the code outside the string.

          L 1 Reply Last reply Mar 23, 2023, 6:24 AM Reply Quote 4
          • L
            Lycan Thrope @Mark Olson
            last edited by Mar 23, 2023, 6:24 AM

            @Mark-Olson ,
            Agreed. This is one of the biggest reasons many of my fellow dBASE users wanted a Notepad++ UDL for the dBASE Language, and one fellow in particular.
            This and word wrap in NPP makes it easy for them to track/find matching open/close delimiters when they make complex commands in dBASE that uses a combination of square brackets, curly brackets and parnthesis when making complex SQL strings for access to backend databases formatted for the dBASE frontend for sending/receiving data.

            1 Reply Last reply Reply Quote 2
            2 out of 5
            • First post
              2/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors