Add Gists in Blogger


Add Gists in Blogger 

Embed the Gist

Here are the steps to 'Embed the gist' to your website.

  • Go to https://gist.github.com/ to create new gist
  • Set the Gist Description to your gist. 
    • ex. "Test Blogger Gist".
  • Then set the file name for your gist including extension.
    • ex . "blogger_test.py"
  • Set the content for the file
            Ex.
           """
              Hi Its test comment
           """
           print('Hi')
           print('Welcome to Gist')

  • Then Click "create public gist" which will create a new public gist which will be available to all users.
  • Below screen will be appear on your screen then just copy the embed code and paste into your code which automatically display the gist.



You can check the view of your gist as follows


Comments