How to add Gist into Blogger

4.6k views Asked by At

It's my first time to add a python script into by blog, after some Googling i found that i easiest way is to use Gist, i posted my python script into Gist, i choose a python language and create public Gist, the result "Embed this gist" was a javascript

<script src="https://gist.github.com/anonymous/7842985.js"></script>

now when i paste this code into my blog and click on preview or publish, nothing appear but the same java script ! any idea please .

3

There are 3 answers

2
Rahul Shah On BEST ANSWER

1.Sign in to blogger and create/edit a post

2.Click on "HTML" and not "compose" and then paste your script.The save without again clicking on compose.


(source: ctrlv.in)

0
Michal Špondr On

You need to switch to HTML mode instead of WYSIWYG editor. Then add the JavaScript code in place you need.

However if you switch back to Compose mode the snippet won't appear! You have to click Preview to see it.

Also try solution mentioned here Issues adding github gist to my blog

0
Anton On

Just change to “Interpret typed HTML” under Post Options -> Compose Settings in blogger