2

I had been using SyntaxHighlighter along with Google Blogger to highlight code and xml on my blog. It used to work in the preview mode and also once the post has been published. All of sudden it stopped working in the preview mode, but works once the blog has been published. I am not sure if any changes have been made to the SyntaxHighlighter or to the Google Blogger.

How to get SyntaxHighlighter work in the preview mode also? I want to make sure that the blog post looks good with SyntaxHighlighter in the preview mode before publishing it.

Praveen Sripati
  • 32,799
  • 16
  • 80
  • 117
  • 1
    SyntaxHighlighter cannot work under preview mode. – herohuyongtao Jan 07 '14 at 10:57
  • As I mentioned in the original query, it used to work in preview mode also and all of a sudden it stopped. I am not able to figure out why. I had been using it for more than a year. – Praveen Sripati Jan 07 '14 at 12:07
  • I see. Look forward to the answer. – herohuyongtao Jan 07 '14 at 14:59
  • As work around temporarily created another blog in Blogger, publish the post from it, make sure it looks good and then finally copy the HTML to the blog of interest. Made the temporary blog invisible to the bots and public. – Praveen Sripati Jan 07 '14 at 16:37
  • 1
    Also post this question on the official blogger forum under "something is broken".They might be able to help. – Rahul Shah Jan 10 '14 at 06:18
  • I have been using prism syntax highlighter since forever and it works in the preview mode, in case you want to switch to that. Never worked with the syntax hightligher, so I cannot really help with that. – KreaTief Oct 31 '14 at 08:46

1 Answers1

0

I suggest to use PrismPrism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s used in thousands of websites, including some of those you visit daily.

santosh
  • 381
  • 2
  • 12