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 😃
-
Login to GithubGist don’t have an account please create one you won’t regret.
-
create a new public gist
-
copy the embed script for the gist
<script src="https://gist.github.com/rakesh87/0666a1baa1b7127ee08c4d363f63056a.js"></script>
-
switch your blog editor to HTML mode
-
paste the embed code where you need
-
you won’t able to see the gist details in Compose mode (In Blogger) need to see the blog in preview mode.