ACE.JS常用方法

ACE常用方法收藏


ACE.JS中代码滚动到指定的行与列的方法

editor.renderer.scrollCursorIntoView({row: 1, column: 1}, 0.5);

ACE.JS中增加断点的代码

editor.getSession().setBreakpoint(line)


ACE.JS中获取代码的行数

_editor.session.doc.getAllLines()

{{collectdata}}

网友评论0