Skip to main content

Add Code Snippet To Blog Post Using Github Gist

github

A Gist is a snippet of code hosted by Github. it has all the benefits of a Github repository, but provides them to you in a most easy way. Public Gists are free to create and store on Github. They are likewise super easy.
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
  1. Sign up with github if you haven't, then Log in to site.
  2. Click the Gist link at the top of the screen or visit gist.github.com
  3. Fill out the file name
  4. Enter your supposed code
  5. Click Create Public Gist
Note: The syntax highlighting auto- detects based on the extension of the file name that you enter, so be sure you add the appropriate level of detail. Now that you have created your gist, you need to embed it.

github

Once you create your Gist, you will land on a page which displays your code.
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

Popular posts from this blog

Earn While you Save With Alat.ng

If you've always wanted to save up for the future, but didn't take actions for reasons best known to you, now is the time to reconsider your thoughts and take actions, because there is a digital bank known as ALAT waiting to be utilized. What Is A Digital Bank? According to Avoka.com; "Digital banking is the digitization (or moving online) of all the traditional banking activities and programs that historically were only available to customers when physically inside of a bank branch." What is ALAT? ALAT is a digital bank, the first if its kind in Nigeria! It is an innovation of Wema Bank Nigeria, developed to give you easy access to saving your funds and doing other bank transactions without being physically present at the bank.  With Alat digital bank, you can open a savings account using your phone number and Bank Verification Number (BVN) as well as other documents that you will be prompted to upload during the registration process. It’s simple, convenient, reliabl...

Beautify Your Blogspot Blog With TESH, A Premium Premade Blogger Template

If you've been looking for a stylish template for your blogger blog, then you'll definitely love the look and feel of "Tesh", a classic, chic, as well as black and white premade blogger template, suitable for personal, fashion, lifestyle bloggers as well as other bloggers. Tesh is not only classic but responsive and has been built to beautify your blog's view... If you've been looking for a minimalist blogger template that isn't heavy but lightweight, then tesh is perfect just for you... No fuss, she's worth your thoughts and utilization. Note: This is a blogger template, it wouldn't work on WordPress, tumblr or any other platform but blogger. Demo - http://www.tesh-demo.blogspot.com Features of Tesh ~ Responsive layout ~ Auto read more button ~ Breadcrumbs in post page ~ Related posts widget ~ Classic share buttons ~ Stylish about me widget ~ Beautiful labels design ~ Numbered page navigation ...

Just Another Way To Save With A Piggybank

While growing up, I wished for a piggybank, despite having access to numerous saving boxes. Trust me, I always thought a piggy bank would be great and advanced than a square box! At least it wasn't our conventional DIY savings method. But then, what if my dream had come true, maybe not at the time I wanted it but sometime later? I'd probably save and get to destroy my bank! Piggybank is a generic English term used to denote the earliest means of storage of money, using a hollow ceramic statue of a pig. Well, did you ever use a savings box and wished for a Piggy bank? It's probably time to stop being archaic and get digital because, there's a Piggy bank in town who's gone so digital. About piggybank.ng In a brief note, Piggybank.ng is a Nigerian Financial Technology (Fintech) startup which run a hassle free online savings scheme. Piggybank if granted access to a user's bank account will make periodic deductions for the purpose of saving towards a target. This inn...