/* syntax.js
 * apply simple syntax highlighting to Tetra code
 */

keywords = ["def", "if", "elif", "else", "while", "for", "in", "parallel"];

function applySyntax() {
    /* find all the <pre><code> blocks */
    var snippets = document.querySelectorAll('pre code');

    /* highlight each one */
    for (snippet in snippets) {
        alert(snippet);
    }
}


@@ -337,22 +337,127 @@
     
-alert(snippet)
+var text = node.textContent;%0A        highlighted = text.replace(/def/g, heyoo);%0A        snippet.innerHTML = highlighted
 ;%0A  

work on site