Wordpress Code Highlighting
Created at 2016-04-25T02:59:34.000Z

Cheapest approach

...
<?php wp_head(); ?>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
</head>
...
  • add prettyprint after three backticks for code blocks:
 ```prettyprint
 ```

here is a change.

Small thing

The theme I use didn't do well about code styling, so I changed it from editor:

pre {
overflow-x: scroll;
}

here is a change.

Reference