1

I've added SyntaxHighlighter to my blog powered by Blogger.

First, all single quotes within a <pre> tag, is converted to double quotes on viewing the post. However, when I edit the post, the single quotes are still there. When I try to use &apos; or &#39; instead, then it gives me a single quote & a double quote.

Second, when I show an example of a <b:else /> conditional tag use in SyntaxHighlighter, it add's a closing </b:else />(there's no such thing) conditional tag. Again, when I go back to edit the post, the </b:else /> is not there. It only appears on post view. Here is what I'm using:

<pre class="brush: xml">
<b:if cond='data:blog.pageType == "item"'>
    STANDARD CONTENT (IF STATEMENT IS TRUE)
<b:else/>
    ALTERNATIVE CONTENT (IF STATEMENT IS FALSE)
</b:if>
</pre>

It appears as:

<b:if cond=""data:blog.pageType" =="item"">
    STANDARD CONTENT (IF STATEMENT IS TRUE)
<b:else>
    ALTERNATIVE CONTENT (IF STATEMENT IS FALSE)
</b:else></b:if>

Third, when out <head> inside a pre tag, it does not show at all on post view. It's blank, but it's there when I edit.

How do I keep it from doing this? It's messing up my tutorial's...

4

1 回答 1

2

尝试使用anouth 语法荧光笔。我使用棱镜,它工作得很好。我写了一个关于如何安装它的教程,如果你有兴趣:http ://bekreatief.blogspot.ch/2013/04/blogger-syntax-highlighter.html

于 2013-08-29T11:19:06.967 回答