I'm trying to use PrismJS as my syntax highlighter for my blogspot blog. After having troubles with Syntax Highlighter, I thought I would give prism a try.
My code look like this:
<pre class="line-numbers language-markup">
<b:if cond='data:blog.url == "http://domain.com/p/about.html"'>
class="language-*" needs to go on the
<code> element, not the
<pre> element. I was making this mistake at first, too.
Updated with correct info
It appears the JS Fiddle doesn't like Prism. Working fine on CodePen and locally on my machine: http://codepen.io/anon/pen/xmwji. Prism uses Regex to identify the sections to highlight. Make sure you escape your code properly. Opening tags (the
< symbol) should be written as
<, and closing tags (the
> symbol) as