summaryrefslogtreecommitdiffstats
path: root/kate/scripts/test.js
blob: acc3b94e3bd791a899018ea54c3027754e5c1e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var test = 1;

var start = document.lines ()

document.editBegin();

for (var t = 0; t < 100; t++)
{
  document.insertLine (start+t, document.lineLength(0));
  document.insertText (start+t, 0, " muh");
  document.insertText (start+t, 0, view.cursorLine());
  document.insertText (start+t, 0, "// ");
}

document.editEnd();