Skip to main content

Code formating.... whew

So I got some syntax highlighting using instructions found here Tips for software engineer. It seems to be using a version of the code that is not hosted at google code??? At least when I looked there was not a function/class dp.SyntaxHighlighter.HighlightAll in the shCore.js that I linked via svn . Instead if you look at the sources of this page you can find it minified and packed and placed right before the body ends. This is what I use to call it.
function FindTagsByName(container, name, Tag)  
        var elements = document.getElementsByTagName(Tag);  
        for (var i = 0; i < elements.length; i++)  
            if (elements[i].getAttribute("name") == name)  
    var elements = [];  
    FindTagsByName(elements, "code", "pre");  
 for(var i=0; i < elements.length; i++) {  
 if(elements[i].nodeName.toUpperCase() == "PRE") {  
    brs = elements[i].getElementsByTagName("br");  
    for(var j = 0, brLength = brs.length; j < brLength; j++) {  
     var newNode = document.createTextNode("\n");  
     elements[i].replaceChild(newNode, brs[0]);  
Post a Comment

Popular posts from this blog

S&P Rating, tea parties and the mad hatter.

This past week the S&P downgraded the USA credit rating from AAA to AA, this now puts us on the same footing as Spain.  All in all it appears to me as part of generalized push to decapitalize and delegitimize government in general. To force the out sourcing of the key infrastructure projects to private corporate entities, much like is done in places like Nigeria, and Colombia. Whether it's the "Tea party" or not, sharks are in the water and instead of tossing our buckets overboard to lighten the load, we need to gather all hands and use them to bail ourselves out.

We all benefit when government is involved in maintaining things like access to water, electricity, roads, and basic health care. The History of this great nation is filled with examples of government subsidies going to private industry to create wealth. To think that private corporations, or even individuals have produced this wealth _ex nihilo_ with only their sweat is hubris. It is to forget that we all…