Author Topic: Remove auto match parentheses  (Read 2684 times)

Offline ntzanos

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Remove auto match parentheses
« on: August 01, 2011, 06:45:25 PM »
Hello,

I tried to remove the OpenClose tag from the Java syntax file (or even tried to have it in but empty) but the program complain about an incorrect parameter. Is it possible to disable automatic pairing?

Regards,

Nikos Tzanos

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: Remove auto match parentheses
« Reply #1 on: August 02, 2011, 04:24:01 AM »
Hi Nikos,

I do not know version, syntax and what exactly you want to achieve :)
You can also try to disable adding of close brace/bracket in Tools->Options->Formating->Smart Helpers->Auto-Brackets. You do not need to change schema.
In which schema you have removed OpenClose? And when you get an exception? Maybe you did a mistake in xml?

BR, Alex

Offline ntzanos

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Remove auto match parentheses
« Reply #2 on: August 02, 2011, 02:39:29 PM »
Hi again,

The schema was java_spec.xml
The error I get is "The parameter is incorrect". There is no error in the xml as the error dialog only appears if I remove the tag (by commenting it with <!-- --> or by having it there but with no content like <OpenClose></OpenClose>

The version I am using is: 1.49.821 64bit win7

Thanks for the tip (i.e. Tools -> Options etc.) I did not know it was there. The problem though is that this is a global setting. I wanted it disabled, in my case, only for Java. Because for some reason in Java it does not work the way I would expect it to, while in Python it works perfectly. It would be nice if there was a way to disable this per file type.

Kind regards,

Nikos Tzanos

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: Remove auto match parentheses
« Reply #3 on: August 03, 2011, 04:54:57 AM »
Hi Nikos,

yes, I have tried the same and by me it also crashes. This situation was not expected and this is a bug :)
I will correct it with next update of the 1.49 release (there is already one bug pending).

About moving the setting to syntax dependent: I will note this but do not promise :) Because at the end I will move all settings to syntax schemes, and I do not want this :)

And. Please describe situation, why brace matching/auto-brackets does not work as expected in java. Maybe this is a bug and can be fixed.

BR, Alex