I have just started to explore ghost.io and I wanted a way to add Syntax Highlighting to my site.
Ghost's official documentation mentions a way to achieve this but for some reason I wasn't able to make it work on my site.
It involves adding a light-weight syntax highlighting script called prism to our site's header and footer area.
Once that's done, any code block adding the following format would automatically get the syntax highlighting feature added to it:
But it didn't work for me.
After a bit of trial and error, I figured that I needed to use the latest version of the script from the following link: https://cdnjs.com/libraries/prism.
I used the following scripts:
And it worked for me.