mIRC Home    About    Download    Register    News    Help

Print Thread
Bracket Checker for Notepad++ #252072 18/03/15 07:23 PM
Joined: Sep 2014
Posts: 52
paper0rplastic Offline OP
Babel fish
OP Offline
Babel fish
Joined: Sep 2014
Posts: 52
Does anyone know if there is a Notepad++ plugin that will behave like the bracket checker built into mIRC?

Re: Bracket Checker for Notepad++ [Re: paper0rplastic] #252074 18/03/15 10:53 PM
Joined: Mar 2010
Posts: 142
Masoud Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 142
Use mSLDev?


Nothing...
Re: Bracket Checker for Notepad++ [Re: Masoud] #252079 19/03/15 11:54 AM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Or have a look this: http://hawkee.com/snippet/7720/

Re: Bracket Checker for Notepad++ [Re: paper0rplastic] #252085 19/03/15 04:26 PM
Joined: Sep 2014
Posts: 52
paper0rplastic Offline OP
Babel fish
OP Offline
Babel fish
Joined: Sep 2014
Posts: 52
Thanks for the feedback guys. I will look into both. smile

Re: Bracket Checker for Notepad++ [Re: paper0rplastic] #262806 08/04/18 05:46 PM
Joined: Dec 2002
Posts: 33
J
jHoNDoE Offline
Ameglian cow
Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 33
There is another one too, http://hawkee.com/snippet/18676/, I like this one.

Re: Bracket Checker for Notepad++ [Re: jHoNDoE] #262808 08/04/18 06:35 PM
Joined: Jan 2004
Posts: 1,167
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,167
You mind testing the bracket checker with this alias?

It behaves correctly for "/bracket_test 1", but displays nothing for "/bracket_test 0". This shows up if the last command of the line is commented and the if() condition is false. But if you comment test2 and not comment test3, it behaves as expected.

Code:
alias bracket_test {
  echo -a -----
  if ($1) { echo -a test1 | echo -a test2 | ; echo -a test3 }
  else echo -a test4
  echo -a test5
}

Re: Bracket Checker for Notepad++ [Re: maroon] #262809 08/04/18 06:45 PM
Joined: Dec 2002
Posts: 33
J
jHoNDoE Offline
Ameglian cow
Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 33
Sorry, not a programmer here, not sure what you really want me to test, hopefully a screenshot will do?


Last edited by jHoNDoE; 08/04/18 06:45 PM.
Re: Bracket Checker for Notepad++ [Re: jHoNDoE] #262810 08/04/18 07:06 PM
Joined: Jan 2004
Posts: 1,167
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,167
The thread is about something that checks brackets the same way as the built-in bracket checker, which I was reading as being Ctrl-H. If the 2 colors for the brackets means that it's matching the 4 brackets without warning of errors, then it's behaving like mIRC, where Ctrl+H doesn't warn of an error, but the end bracket of that internal pair is ignored when the if() condition is $false, but recognized when $true.