Monday, January 13, 2014

Prettify does not work with Blogger

The solution is a tricky one:
<script>
$(window.blogger.ui()).on('viewitem', function (event, post, element) {
    prettyPrint();
});
</script>

Source: http://stackoverflow.com/a/14659603/304371


1 comment: