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.
Volunteer who’s written 1814 tutorials & 3000+ Code Snippets for members – Not For Hire.
Thanks Brad...that worked...I don't know what I was doing wrong before!
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!