index.js
function highlightPostSyntax( post ) {

	var codeTags = [],
			i = 0,
			len = 0;

	doc = doc || createDom( post.content );
	
	codeTags = doc.querySelectorAll('pre code');

	len = codeTags.length;

	for ( ; i < len; i++ ) {

		// Replace class names beginning with "lang-" with "language-" for Highlight.js
		codeTags[i].className = codeTags[i].className.replace('lang-', 'language-');

		hljs.highlightBlock( codeTags[i] );
	}

	post.content = doc.body.innerHTML;
}
function highlightPostSyntax( post ) {

	var codeTags = [],
			i = 0,
			len = 0;

	doc = doc || createDom( post.content );
	
	codeTags = doc.querySelectorAll('pre code');

	len = codeTags.length;

	for ( ; i < len; i++ ) {

		// Replace class names beginning with "lang-" with "language-" for Highlight.js
		codeTags[i].className = codeTags[i].className.replace('lang-', 'language-');

		hljs.highlightBlock( codeTags[i] );
	}

	post.content = doc.body.innerHTML;
}
function highlightPostSyntax ( post ) { var codeTags = [ ] , i = 0 , len = 0 ; doc = doc || createDom ( post . content ) ; codeTags = doc . querySelectorAll ( 'pre code' ) ; len = codeTags . length ; for ( ; i < len ; i ++ ) { // Replace class names beginning with "lang-" with "language-" for Highlight.js codeTags [ i ] . className = codeTags [ i ] . className . replace ( 'lang-' , 'language-' ) ; hljs . highlightBlock ( codeTags [ i ] ) ; } post . content = doc . body . innerHTML ; }
Parse any code blocks in the post content and highlight syntax

@param {Object} post
Parse any code blocks in the post content and highlight syntax