Community
    • Login

    Problem (for me) with Brackets Check.

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    5 Posts 5 Posters 1.1k Views 1 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.
    • Bob SelbyB Offline
      Bob Selby
      last edited by

      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

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @Bob Selby
        last edited by Ekopalypse

        @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

        Alan KilbornA 1 Reply Last reply Reply Quote 2
        • Alan KilbornA Offline
          Alan Kilborn @Ekopalypse
          last edited by

          @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() {
              //{   }   
          }
          
          Mark OlsonM 1 Reply Last reply Reply Quote 3
          • Mark OlsonM Offline
            Mark Olson @Alan Kilborn
            last edited by

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

            Lycan ThropeL 1 Reply Last reply Reply Quote 4
            • Lycan ThropeL Offline
              Lycan Thrope @Mark Olson
              last edited by

              @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

              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