Add the plugin to your book.json, and disable default GitBook code highlighting:
book.json
{ "plugins": ["prism", "-highlight"] }
Originally based on https://github.com/spricity/google_code_prettify.
Apache 2