BernhardV
Member
Posted 4 months ago #
Hi all,
I found a problem using the wp-syntax plugin on my blog.
When I add entities like '<' and '>' in my visual editor inside the <pre lang="php"> ... the editor converts them to < ; and > ;, but on the blog itself it shows also < ; and > ; instead of '<' and '>'
Anyone who noticed this problem to, or knows a solution?
tnx
Bernhard
kherge
Member
Posted 4 months ago #
I'm getting the same problem.
I took a look at the plugins code and it looks like it has checks in place to convert back the < and > when it highlights the code, but it isn't working.
I switched to HTML mode in the editor and reverted the encoding myself. It seems to be working now. I didn't do this originally because I thought it would have messed up the rendering of the blog post. It didn't!
A workaround for now would be to paste your code in HTML mode.
BernhardV, Sorry the visual editor isn't officially supported, but if someone finds a workaround (aside from using the HTML editor), patches are gladly accepted.
prometh
Member
Posted 2 months ago #