Make prettyprint work.  Code blocks get syntax highlights.

The old version failed to loop over the elements.  It also used a selector that would get all pre elements instead of only those that have a code element child.  This change takes care of both of those issues.