mIRC Home    About    Download    Register    News    Help

Print Thread
P
paper0rplastic
paper0rplastic
P
Does anyone know if there is a Notepad++ plugin that will behave like the bracket checker built into mIRC?

Joined: Mar 2010
Posts: 144
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 144
Use mSLDev?


Nothing...
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Or have a look this: http://hawkee.com/snippet/7720/

P
paper0rplastic
paper0rplastic
P
Thanks for the feedback guys. I will look into both. smile

J
jHoNDoE
jHoNDoE
J
There is another one too, http://hawkee.com/snippet/18676/, I like this one.

Joined: Jan 2004
Posts: 2,081
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jan 2004
Posts: 2,081
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
}

J
jHoNDoE
jHoNDoE
J
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.
Joined: Jan 2004
Posts: 2,081
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jan 2004
Posts: 2,081
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.


Link Copied to Clipboard