ace-editor

Ace editor, how to turn on block selection without having to press alt

Normally in ace-editor, to if you hold down the alt key, while making a selection, it will select it in block form which i think is called block selection. How do i make it so that it is in block selection as standard, and pressing alt changes it to normal selection instead. I think it has something...

Ace Editor API: How to select current line onCursorChange?

I want to always select the current line, when cursor position changes. And then remove that line with a keypress and append it to a div tag. I know how to add keybord commands. But i don't understand how to do something onCursorChange() , it seems to be different from Editor.on("change", function...