Forums

[resolved] [Plugin: WP-Syntax] <> &gt &lt mixed up? (4 posts)

  1. 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 &lt ; and &gt ;, but on the blog itself it shows also &lt ; and &gt ; instead of '<' and '>'

    Anyone who noticed this problem to, or knows a solution?

    tnx
    Bernhard

  2. 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.

  3. rmm5t
    Member
    Posted 3 months ago #

    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.

  4. prometh
    Member
    Posted 2 months ago #

Reply

You must log in to post.

About this Topic

Tags