Add Prism.js code highlighting to Ghost
Prism.js is a wonderful little javascript library for highlighting code at runtime. It support various themes + a ton of languages and is really easy to implement in Ghost.
#include <stdio.h>
int main()
{
printf("Hello world\n");
return 0;
}
Setup
All you have to do is go to prismjs.com and build a version that suits you and upload the css and javascript files into your theme assets folder. And finally add them to the code injection settings in Ghost.
<!-- Add the css in the header -->
<link href="/assets/