TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

1 pointsby pareshverma91over 13 years ago
Currently I am trying to use <i>syntaxhighlighter</i> following http://blog.cartercole.com/2009/10/awesome-syntax-highlighting-made-easy.html Usage issues (specific to <i>blogger</i>): a)Difficulty in giving the clipboard path string. Blogger encodes it.(Currently using //&#60;![CDATA[ &#60;code&#62; //]]&#62; 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).<p>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.

no comments

no comments