• Top
  • New

How to add syntax highlighter on Google's *blogger*

by pareshverma91 on 2/19/2012, 10:38:45 PM with 0 comments
Currently I am trying to use syntaxhighlighter following http://blog.cartercole.com/2009/10/awesome-syntax-highlighting-made-easy.html Usage issues (specific to blogger): a)Difficulty in giving the clipboard path string. Blogger encodes it.(Currently using //<![CDATA[ <code> //]]> syntax to write the javascript code) b)Copy to clipboard is not being shown. c)If the syntax highlighted code is manually selected to be copied, then on pasting stray characters are being introduced. (for now I am suggesting usage of linux tr command to replace them on my blog).

Replacement to the syntax highlighter would also be appreciated. As a sample problem try copy-pasting the code at http://pareshverma.blogspot.in/2012/02/datac-miller-rabin.html and running it directly.