I’m writing a tutorial on my site and I need to be able to display HTML and CSS code for the purpose of the tutorial. How do I embed code so it actually shows up the way that I wrote it with line numbers next to the code so that my visitor can simply copy and paste the code?
I tried using that but I didn’t know where or how to put the “embed” link into my post…I tried everything but it didn’t work.
You simply grab the embed link from Github Gists and paste it in your text editor.
1. Click on This Gist link above
2. Copy from the Embed This Gist
3. Paste the one line of script into your text editor and click save
4. View this post to see the result.
Thanks Brad…that worked…I don’t know what I was doing wrong before!
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.