Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Problem (for me) with Brackets Check.

    Plugin Development
    5
    5
    81
    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 Selby
      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

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        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 Kilborn 1 Reply Last reply Reply Quote 2
        • Alan Kilborn
          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 Olson 1 Reply Last reply Reply Quote 3
          • Mark Olson
            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 Thrope 1 Reply Last reply Reply Quote 4
            • Lycan Thrope
              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
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors