Auto Closing of curly braces

665 views
Skip to first unread message

Eden Zaharoni

unread,
Jun 19, 2013, 2:42:36 AM6/19/13
to ace-d...@googlegroups.com
Hi All

I've been using ace editor for 2-3 days now, its an amazing component.
i am having problems making the control to auto close curly braces (it doesn't do it...), 
I've followed the API instructions, my code is quite basic and looks like this:

editor = ace.edit(id);
editor.getSession().setMode("ace/mode/css");
editor.setBehavioursEnabled(true);

setting the Behaviors to enabled helps with other characters like quotation marks and brackets, but not with curly braces.

Any clue?

Thanks in advance

Harutyun Amirjanyan

unread,
Jun 19, 2013, 4:09:56 PM6/19/13
to ace-d...@googlegroups.com
Hi

the behavior of curly brackets was changed in
https://github.com/ajaxorg/ace/compare/2950c67e3e8c86ea2df56cddfae910e6ccf61f93...40bc5ee79af4097ea13fc19d5022c16d46834c13
to insert matching bracket only after pressing enter
Reply all
Reply to author
Forward
0 new messages