Im trying to get pretty.js to prettify code in CODE tags, using this js:
onload_functions.push(function() {
var node_list=document.getElementsByTagName('code');
for (i=0; i < node_list.length; i++) {
node_list[i].setAttribute('class','prettyprint');
}
prettyPrint();
});
This works fine for Firefox :) but IE's having none of it. What am i doing wrong?
You can see it (non)working at http://sam.xnet.tk