Gudbrand Olimb Hi! My name is Gudbrand and this is my attempt of a blog. Living & working in Oslo, Norway. Get in touch? Feel free to PM me.

Ghost - Prism Code Syntax Highlighting

  Reading Time:

If you want better code syntax recognition for your code snippets in Ghost adding support for Prism highlighting is definitely worth it.

This is how easy it is

1.Login to Ghost, go to Code Injection
2.Add this to blog head

<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.css" rel="stylesheet" />  

3.Add this to the blog footer

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.js" ></script>  

To use the Prism Syntax Highlighting just do similarly as with Ghost for a code block

 ```css
   body {
       background-color: lightblue;
   }
   h1 {
       color: navy;
       margin-left: 20px;
   }
**Result with Prism**
```css
   body {
       background-color: lightblue;
   }
   h1 {
       color: navy;
       margin-left: 20px;
   }

Currently Prism support 122 different syntaxes, see following url: http://prismjs.com/#basic-usage

Ghost - Custom Email configuration of Ghost

I spent some time to master the SMTP configuration of my Ghost Docker installation for a custom email provider so to save others from the same...

Ghost - Set up your own theme development environment

Loving Ghost and inspired by Donovan Miller @ switchbit.io i setup my own local Ghost development environment with a tweek. Building on Donovan's (https://blog.switchbit....

blog.golimb.com   Never miss a story from blog.golimb.com, get updates in your inbox.