- Get link
- X
- Other Apps
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 will be visible to you when you view you blog, not on the editor.
Conclusion:
Hope you got an idea how to do so! It is quite easy and fun, you don't have to edit the CSS content of your page as well it also shows syntax highlighting.
Comments
Post a Comment