Lines Matching refs:slice
174 keyCombo += modifierKeys[i].slice(0, -3) + '+';
238 sel = text.slice(selStart, selEnd);
254 preNewlines = text.slice(0, selStart).split(newline).length - 1;
315 target.value = text.slice(0, startLine) + tab +
316 text.slice(startLine, endLine).replace(/\n/g, function () {
319 }) + text.slice(endLine);
337 if (text.slice(startLine).indexOf(tab) === 0) {
341 sel = sel.slice(tabLen);
349 … target.value = text.slice(0, startLine) + text.slice(startLine + preTab, selStart) +
353 }) + text.slice(selEnd);
380 target.value = text.slice(0, selStart) + tab + text.slice(selEnd);
388 if (text.slice(selStart - tabLen).indexOf(tab) === 0) {
389 target.value = text.slice(0, selStart - tabLen) + text.slice(selStart);
428 whitespace = text.slice(startLine, endLine).match(/^[ \t]*/)[0];
444 target.value = text.slice(0, selStart) + '\n' + whitespace + text.slice(selEnd);