Lines Matching refs:line
51 this.line = null; // Template for new mirror line elements
72 var line = moaiEditor.createHTML('<div class="moaied-mirror-line"></div>');
75 line.appendChild(content);
77 line.appendChild(match);
78 this.line = line;
166 const line = this.content.childNodes[i];
167 line.highlight.match = match.syntax;
168 line.highlight.syntax = match.syntax;
169 this.highlight(line);
177 const line = this.content.childNodes[i];
178 line.highlight = {match:null, syntax:null, children:null};
179 this.highlight(line);
297 var line = this.content.childNodes[i];
298 line.text = text;
299 line.highlight.match = null;
300 this.highlight(line);
320 var line = this.getNewLine(text);
321 …this.content.insertBefore (line, mirrornode); // If 'mirrornode' is null the insertion will happ…
340 highlight(line) { argument
343 if (line.text == '')
344 line.text = ' ';
347 this.syntax.highlight(line);
351 let match = line.highlight.match;
352 let overlay = line.querySelector('.moaied-highlight-match');
363 var line = this.line.cloneNode(true);
364 line.text = text;
365 line.highlight = {match:null, syntax:null, children:null};
366 this.highlight(line);
367 return line;
470 const line = document.querySelector("#moai__debug div:nth-child(2)");
471 if (!line) return;
476 line.textContent = text;