• Hi all.

    I’m new to wordpress and installed it for a new blog. On the blog I’ll be needing a syntax highlighter.

    I tried wp-syntax and codehighlighter, but in both cases, as soon as I enter the lang attribute, my site breaks. Everything is visible up to the post title, after which the page goes blank. I tried several templates, and all have the same behaviour, so I guess it must have something to do with WordPress itself ? Both plugins show this behaviour, but after some googling, it seems no-one else has had ths problem. Am I missing something ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter wad

    (@wad)

    I finally found codecolorer, which uses the <code> tags instead of the <pre> tags, and everything’s fine. But if anyone understands the original problem, I’m curious to know what happened.

    I too have had this trouble since the new update but I have only just noticed it. I disabled all the plugins and have narrowed it down to this one. It was only certain posts that were affected for me but not all of them used the plugin so I am curious as to what is causing this problem.

    What version of WP, PHP, WP-Syntax are you using? Also, is it a particular language that breaks the output (e.g. lang=”php”)? Is your problem related to this thread?

    Thread Starter wad

    (@wad)

    Hi rmm5t.
    WP 2.8
    PHP 5 I beleive, but should check with my host.
    WP-syntax 0.9.8

    No, it happened with actionscript, java and php. I didn’t try any others. Also, the code I tested was very simple (like trace("hi"); or <?php echo "hi"; ?>), so not related to the post you linked to.

    It’s a shame, because the screenshots of WP syntax look a bit better than codecolorer. I use it for actionscript on my blog and the syntax highlighting with codecolorer is almost the same as the Flash IDE (which is fine, but not great. Something like the syntax highlighting from Flashdevelop would be far better).

    Notice rmm5t that the problem also occurs with CodeHighlighter. So it’s not necessarily related to WP-Syntax, but maybe to WP or Geishi.

    Thanks for your time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using <pre> tags breaks my site’ is closed to new replies.