I am trying to get the value in one line in the Ace editor.
According to Ace Editor documentation:
gotoLine() to go to one linegetLine() to get one linegetLines() to get multiple rows
Here is what I tried:
var html = ace.edit("html"); html.getSession().setMode("ace/mode/html"); html.setTheme("ace/theme/eclipse"); html.setPrintMarginColumn(false); html.resize(); var line4 = html.gotoLine(4); var getfour = html.getLine(4); var getfoureight = html.getLines(4,8);
gotoLine() works. getLine() and getLines() do not work.
What am I doing wrong?
source share