Prism on Ghost with Casper theme
There is a lot of inconsistent doco out there, so here are the latest settings to get C# syntax highlighting in a Ghost installation using the default Casper theme.
Code Injection -> Blog Header
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/prism/1.11.0/themes/prism.min.css">
<!-- Line numbers plugin -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/prism/1.11.0/plugins/line-numbers/prism-line-numbers.min.css">
Or, link to a community stylesheet of your choice.
Code Injection -> Blog Footer
<!-- Core library -->
<script src="//cdnjs.cloudflare.com/ajax/libs/prism/1.11.0/prism.min.js"></script>
<!-- C# support -->
<script src="//cdnjs.cloudflare.com/ajax/libs/prism/1.11.0/components/prism-csharp.min.js"></script>
<!-- Line numbers plugin -->
<script src="//cdnjs.cloudflare.com/ajax/libs/prism/1.11.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
Note that JavaScript support is provided with the core prism library.
Testing
// C#
var myList = new List<string>() { "hello", "world" };
// JavaScript
const hello = 'world';
-- SQL
SELECT * FROM Books;
# bash
git fetch