• visinoni

    (@visinoni)


    I’m trying to put code (php and xml) in
    “pre” tags in a wordpress blog (I have a geshi module installed to display highlighted syntax). The problem is that it saves it just fine the first time, but then when you go in to edit the post, all the whitespace in the nicely formatted whitespace in my php or xml code is now gone. Now I have to re-space it out every time I edit a blog post. Is there any way around this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Turn off the visual editor and use the code editor instead. Users->Your Profile.

    Is there any other ways to stop WP of removing extra whitespace?

    I have a PHP code on my site and I moved to WP because it had a nice Visual WYSIWYG editor. If I have to disable it and write HTML, I need to type strong, italic, color, etc all HTML codes by myself many many times in a post :/

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Why does wordpress mess up my whitespace?’ is closed to new replies.