Totally simple syntax highlighting in Blogger
Sometime you don’t need to host code, you just want to post it in a blog post. Google Code Prettify (archive.org) does this really well, either per post, or across the blog.
1. Copy the script tag. Here’s what you need to copy into either your template, or into your post:
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" ></script> 2. HTML-encode your code There are a bunch of HTML encoders (archive.org) online, I haven’t found one that I’m really a fan of. They all do what they’re supposed to do, since it’s trivial.