You can create a new Gist, add, modify, and delete files and code entirely in the browser. You don't need to install or download anything.
last time I wrote about how you can add code snippets to your blogger blog posts using syntaxhighlighter. Today, I will be exposing to you how github works for blogger and other blogging platforms when it comes to adding code snippets.
Below are the steps
- Sign up with github if you haven't, then Log in to site.
- Click the Gist link at the top of the screen or visit gist.github.com
- Fill out the file name
- Enter your supposed code
- Click Create Public Gist
Copy the embed link and paste the script tag on to your website.
and that's all.
make sure your paste the script tag in the html view of your post editor...
To edit any code you've written, go to your github gists and edit.
Comments
Post a Comment