added autopair, multiple cursor