How to use gist as syntax highlighter in your blog (Blogger)

I was trying to add some kind of coding syntax highlighter for the blog and I found the Github gist making the syntax highlighting super easy.

If you too are looking for the code syntax highlighting, simply follow the steps below 😃

  1. Login to GithubGist don’t have an account please create one you won’t regret.

  2. create a new public gist

  3. copy the embed script for the gist


<script src="https://gist.github.com/rakesh87/0666a1baa1b7127ee08c4d363f63056a.js"></script>

  1. switch your blog editor to HTML mode

  2. paste the embed code where you need

  3. you won’t able to see the gist details in Compose mode (In Blogger) need to see the blog in preview mode.