> ## Content Index
> Fetch the complete content index at: https://corti.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Going from Plain Code Snippets to Pretty Printed ones in Ghost CMS in 5 seconds.
- URL: https://corti.com/going-from-plain-code-snippets-to-pretty-printed-ones-in-ghost-cms-in-5-seconds/
- Published: 2024-11-19T09:32:01.000Z
- Updated: 2024-11-19T09:32:01.000Z
- Author: Sascha Corti

Summarizing my learnings from [this article](https://ghost.org/tutorials/code-snippets-in-ghost/?ref=corti.com): Ghost CMS strangely doesn't pretty print (color code) code snippets out of the box. Luckily, it takes 5 seconds to fix that.

In the Ghost admin page, simple navigate to settings -> code injection -> site header and add the following snippet:

```javascript
<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js" defer></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism-twilight.min.css">
```

Note that you can choose either `prism-twilight.min.css` for a darker or `prism.min.css` for a lighter color scheme.

That's all!

![](https://corti.com/content/images/2024/11/image-8.png)

Dark template with prism-twilight.min.css in action.