XBrackets plugin
- Author
- Message
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
-
Offline
- Posts: 49
- Joined: Fri Sep 22, 2006 9:28 pm
- Location: Питер
- Contact:
-
Offline
- Posts: 120
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
Double-byte-symbol
I very like this Plugin. Thanks!
I have an idea that Does it possible to make Xbrackets support custom couple of brackets even Double-byte-symbol.
----------
Regards
I have an idea that Does it possible to make Xbrackets support custom couple of brackets even Double-byte-symbol.
----------
Regards
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
Re: Double-byte-symbol
Do you mean something like this?cnnnc wrote:support custom couple of brackets even Double-byte-symbol.
Actually, I don't know how much similar "specific" bracket pairs exist, and how these "specific" brackets can be typed (I tried, for example, Alt+171 as mentioned above, but did not get the same symbol).« -- Alt+171, U+00AB -- Left-Pointing Double Angle Quotation Mark
» -- Alt+187, U+00BB -- Right-Pointing Double Angle Quotation Mark
“ -- Alt_147, U+201C -- Left Double Quotation Mark
” -- Alt_148, U+201D -- Right Double Quotation Mark
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
-
Offline
- Posts: 22
- Joined: Thu Apr 16, 2009 12:52 pm
Re: Double-byte-symbol
cnnnc wrote:I very like this Plugin. Thanks!
I have an idea that Does it possible to make Xbrackets support custom couple of brackets even Double-byte-symbol.
----------
Regards
I hope the plugin can support chinese symbols,such as :《》“”(){}〔〕‘’and <>""(){}[]''.DV wrote:Do you mean something like this?cnnnc wrote:support custom couple of brackets even Double-byte-symbol.Actually, I don't know how much similar "specific" bracket pairs exist, and how these "specific" brackets can be typed (I tried, for example, Alt+171 as mentioned above, but did not get the same symbol).« -- Alt+171, U+00AB -- Left-Pointing Double Angle Quotation Mark
» -- Alt+187, U+00BB -- Right-Pointing Double Angle Quotation Mark
“ -- Alt_147, U+201C -- Left Double Quotation Mark
” -- Alt_148, U+201D -- Right Double Quotation Mark
thanks
-
Offline
- Posts: 120
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
Re: Double-byte-symbol
Yes, that's what I mean. But you don't need know how much bracket-pair exist, it's user's job. The job need you to do is let Xbrackets support a custom bracket-pair list from section like [bracketpairs] in "Xbrackets.ini", it's come from user's define.DV wrote:Actually, I don't know how much similar "specific" bracket pairs exist, and how these "specific" brackets can be typed (I tried, for example, Alt+171 as mentioned above, but did not get the same symbol).
-
Offline
- Posts: 1291
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
Re: Double-byte-symbol
Currently all the rules are hard-coded, so such new feature will need some architecture re-design. Going further, such architecture re-design will assume that all the hard-coded rules may also be placed into some external configuration file which will allow the plugin to be fully user-configurable. This is very good but assumes a lot of work which I don't want to do now. Actually, I'm satisfied with current implementation and don't need more. As the source code of all the plugins is open, anyone can modify it and suggest the improvements.cnnnc wrote:The job need you to do is let Xbrackets support a custom bracket-pair list from section like [bracketpairs] in "Xbrackets.ini", it's come from user's define.
-
Offline
- Posts: 16
- Joined: Mon Aug 25, 2008 9:31 am
Попробовал сейчас использовать этот плагин и появилась пара пожеланий:
1. Подсвечиваются пары скобок, находящиеся с обеих сторон от курсора. Думаю это есть не совсем правильно и слегка сбивает с толку. Желательно бы конечно подсвечивать только ту пару, одна из скобок которой находится перед курсором.
2. При вводе закрывающей скобки (а это быстрее, нежели переводить курсор в положение после закрывающей скобки клавишей End или стрелками Left и Right) желательно, чтобы учитывалось, есть ли уже на месте вводимого символа закрывающая скобка (скорее всего созданная плагином);и если есть - то замещать существующую. Т.е. чтобы не получалось две подряд закрывающие скобки.
1. Подсвечиваются пары скобок, находящиеся с обеих сторон от курсора. Думаю это есть не совсем правильно и слегка сбивает с толку. Желательно бы конечно подсвечивать только ту пару, одна из скобок которой находится перед курсором.
2. При вводе закрывающей скобки (а это быстрее, нежели переводить курсор в положение после закрывающей скобки клавишей End или стрелками Left и Right) желательно, чтобы учитывалось, есть ли уже на месте вводимого символа закрывающая скобка (скорее всего созданная плагином);и если есть - то замещать существующую. Т.е. чтобы не получалось две подряд закрывающие скобки.