Question

I have a blog with "Dynamic View" as the template (The one with Sidebar/Mosaic and other options). I was trying to use GIST/Github as my default syntax highlighter as it works like a charm.

However the "script" tags included in the Blog POST do not get rendered. Is there anyone who has managed to add Script tags to their Dynamic View Template?

(Obviously there are other ways of embedding syntax highlighting but I feel Gist is the most elegant of them all)

Was it helpful?

Solution

This link works perfectly fine for me

http://blog.moski.me/2012/01/gist-with-bloggers-dynamic-views.html

At the end of each of your blog posts, include the following code using the HTML editor:

<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script>

Now to include any gist template just add the following anywhere in your blog post.

<div class="gistLoad" data-id="GistID" id="gist-GistID">Loading ....</div>

Replace "GistID" with your gist id.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top