Skip to main content

Posts

Showing posts with the label Integrate code snippet to blogspot

How to integrate code snippets on BlogSpot posts?

Introduction: Creating code snippets using HTML and CSS is very easy, but for hosted blogs such as Blogger, it is quite difficult to edit the source code of the pages. You can create some custom CSS code to the source code of the page, but today we are going to show the easy process, i.e. using popular source code hosting website 'GIT HUB'. For example: Steps: We will be using GIST of GitHub to make code snippets. Open up the https://gist.github.com . You may have to Sign In or Sign Up for a GitHub account. After sign in to your account, create a new gist by selecting the top right button on the web page. Type a name for your file and type or paste the source code in the second text area. That's it, now, create a secret gist or a public gist. Secret gist means it is not visible to users, but if you give them the link it will be visible. Copy the embed code. Paste in the post editor of your blogspot post while in the HTML view. It...