MoveFast
MoveFast

Reputation: 3025

Getting google prettify to work with dynamic views blogger template

I have tried this and this , both previous solutions from stack overflow but both of these solutions are not working with Dynamic Views Template of Blogger. Can you please help to get this working.

Upvotes: 3

Views: 1281

Answers (2)

muni
muni

Reputation: 1360

Please refer this below stackoverflow answers, to add that Google code pretifier to blogger..

Adding google prettifier synatx highlighter is very easy..

https://stackoverflow.com/a/27579776

also refer this following documentation.

how to add Syntax Highlighter For Blogger Using Google Prettify

add below code just before tag...

<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>

add your code between

<pre class="prettyprint">...</pre> 

Upvotes: 0

jpillora
jpillora

Reputation: 5262

Wrote a blog post on Easy Syntax Highlighting for Blogs

http://blog.jpillora.com/2012/06/easy-syntax-highlighting-for-blogs.html

Currently running on blogger, though I haven't tested it on all browsers though I can't see why it wouldn't work. Let me know how it goes.

Upvotes: 3

Related Questions