How can I embed code snippets in Blogspot posts



Embedding your code with beautiful style by Github tool in your blog will increase user engagement.
If you have a code, and you want to snippet code in your blogger post just follow these steps and enjoy.

  • Create your code.
  • Open up GitHub
  • Copy your code and paste it into Github text box.
  • You can use your coding file by using Add File button.
  • Then click on Create Public gist
  • It will create a script tag in embed section
  • What you will have something like this:



  • Copy the Script tag from embed section.
  • Open the blog post, in blogger.
  • Click Edit as HTML.
  • Paste the copied Script tag where you wanted it to be inserted.


  • Check by compose post
  • Click Save. You are done.

It is the final result:




I hope it is very helpful for you because it is very easy way to snippets your code in a blogger post.

If you don't like github service you can use our Code Embed Tool https://codeembed.blogspot.com/

if you need any help please leave the comment in the comment box. thanks