Eight Simple Steps to Insert Highlighted Code Into Your Blogger (Blogspot) Post
With apologies to My Few Steps for stealing his thunder.
- Get into the Theme section of your blog
- In the updated page, use the dropdown to get to the Edit HTML section
- Now, get the code you need from highlightjs.org, which you need to insert into the HEAD portion of the HTML you see..
- Excellent. Now, paste this code in your HEAD section, being mindful to close the tag which our third-party-vendor hasn't bothered to do 😊
- Super. Now, a similar errand for the BODY. Unfortunately, you need two lines which aren't all in one place 😊 (one line from the same place as the above, the second from the Usage section) :
- Now, paste these two lines at the END of the BODY section :
- Believe it or not, you're all set. Want to add some code, just go into the HTML editor in your and add code such as :
<pre><code class="language-python">
# Roe Vs Wade
print("What are two ways of getting to America?")
</code></pre>
Gives you :
# Roe Vs Wade
print("What are two ways of getting to America?")



Comments
Post a Comment