We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173613f commit 439b23fCopy full SHA for 439b23f
code-input.js
@@ -656,12 +656,7 @@ var codeInput = {
656
let numNewNodes = nodesToInsert.length;
657
658
// Place these highlighted token(s) back into the result element
659
- document.querySelector("#demo").innerHTML = "";
660
for(let i = 0; i < nodesToInsert.length; i++) {
661
- // if(nodesToInsert[i].nodeType != 3) {
662
- // // nodesToInsert[i].style.backgroundColor = "#" + "0123456789abcdef"[Math.floor(Math.random() * 16)] + "0123456789abcdef"[Math.floor(Math.random() * 16)] + "0123456789abcdef"[Math.floor(Math.random() * 16)];
663
- // }
664
- document.querySelector("#demo").appendChild(nodesToInsert[i].cloneNode(true));
665
if(lineUntilEnd) {
666
this.codeElement.appendChild(nodesToInsert[i]);
667
} else {
0 commit comments