Page 1 of 27

XBrackets plugin

Posted: Wed Oct 25, 2006 12:42 pm
by Instructor
AkelBrackets plugin for AkelPad 3.1.2 (and above)

This plugin allows to autocomplete brackets ([{""}])
i.e. it inserts corresponding right bracket when
the left bracket is typed.
The plugin uses "smart" autocompletion:
- next character is analysed for ([{ brackets
- next & previous characters are analysed for " quote

(C) 2006, Vitaliy Dovgan
dvv81 <at> ukr <dot> net


<<Download>>

Posted: Wed Jan 10, 2007 7:00 am
by Yuyu
how about adding the function of highlighting the matched (the other)bracket ?
i think this is more practical. :wink:

Posted: Thu Jan 11, 2007 11:35 am
by DV
Yuyu wrote:how about adding the function of highlighting the matched (the other)bracket
В смысле, подсвечивать открывающую и закрывающую скобку, если курсор находится слева или справа от одной из скобок? То есть:
|[пример текста] и [пример текста|]
Или подсвечивать скобки при любой позиции курсора между этими скобками? То есть:
[пример| текста]
| - это кусор ;)

Posted: Thu Jan 11, 2007 12:33 pm
by Yuyu
:shock:
sorry that i have no idea about Russian....
:cry:

Posted: Thu Jan 11, 2007 12:54 pm
by DV
Yuyu wrote:sorry that i have no idea about Russian....
Not a problem.
I asked: do you want to highlight brackets when the cursor is near to one of the brackets, e.g.
|[some text] and [some text|]
or the brackets must be highlighted when a cursor is at any position between them, e.g.
[some| text]
| - it is a cursor :)

Posted: Thu Jan 11, 2007 2:39 pm
by SpellCaster
Suppose the 1st variant is much more simple to realize =)

Posted: Thu Jan 11, 2007 3:20 pm
by Yuyu
DV wrote:
Yuyu wrote:sorry that i have no idea about Russian....
Not a problem.
I asked: do you want to highlight brackets when the cursor is near to one of the brackets, e.g.
|[some text] and [some text|]
or the brackets must be highlighted when a cursor is at any position between them, e.g.
[some| text]
| - it is a cursor :)
the first option. :) :idea:

Posted: Fri Jan 12, 2007 7:54 am
by DV
OK, I'll try to implement this. As I see, it needs additional settings dialog with checkboxes "Autocomplete brackets" and "Highlight brackets" to turn these options on and off.
Also I'm not sure with Undo/Redo support: brackets highlighting is actually text modifying, isn't it? So, how can I keep previous Undo/Redo buffers without modifying/clearing them while highlighting brackets? Any ideas?

Posted: Sat Jan 13, 2007 3:07 am
by Yuyu
I'm a layman about programming. :(
But the txt file doesn't have format, right?
so, as I see, highlighting maybe not text modifying. it's just about programming.
my guess..

Posted: Wed Jan 17, 2007 10:04 am
by DV
I'll try to use the same approach as in the HighLight plugin. But not now, probably, after a week or two.

Posted: Wed Jan 31, 2007 1:31 pm
by DV
I'm back :) And I must say that active brackets highlighting is more complicated thing than I expected. Anyway, now it's basically implemented. I think, we'll see the final version on the next week. It will be for AkelPad 3.2.1.

Posted: Fri Feb 09, 2007 8:45 am
by DV
Just for information: the new version of the plugin already exists, but it's a little buggy. The plugin will be released after all the bugs will be corrected.

И то же самое па-а-руссски :) Новая версия плагина уже существует, но она слегка глюкавая. Плагин будет выпущен после устранения всех ошибок.

Posted: Sat Feb 17, 2007 8:36 pm
by DV
Официально заявляю, что окончательная версия плагина AkelBrackets 1.1 доступна для скачивания :) Для закачки воспользуйтесь ссылкой вверху.
The official release of AkelBrackets ver. 1.1 is already here. Use the download link above.

Posted: Mon Feb 26, 2007 9:42 am
by DV
DV wrote:Официально заявляю, что окончательная версия плагина AkelBrackets 1.1 доступна для скачивания :) Для закачки воспользуйтесь ссылкой вверху.
The official release of AkelBrackets ver. 1.1 is already here. Use the download link above.
От блин, дата сообщения не обновилась :?

Posted: Sat Mar 10, 2007 7:45 pm
by NakaRB
плагин не обрабатывает множественные вложенные скобки одного типа, например, (()). с чередующимися скобками - все ок.