• I am continuously changing my theme files, and modifying various parts of my site to see what works and what doesn’t. As such, I’m always looking at the HTML code that WordPress generates, and it’s such a mess, the indenting is all over the place.

    Usually I use Firebug or the DOM Inspector to do what I need, but sometimes I just need to see exactly what’s being sent out.

    Is there a plugin that at least tries to tidy this up?

    I tried to search for this, by the way, but all I found were code formatters for within posts or pages.

Viewing 6 replies - 1 through 6 (of 6 total)
  • It may not be exactly what you are look for but try this : View Source Chart.

    Thread Starter detly

    (@detly)

    An interesting plugin, but not what I’m after here.

    By way of an example: last week I was tearing my hair out trying to figure out why there was a stray “->” just after my post heading. It was because of an IE conditional comment I’d put in my post, and I had to trawl through the HTML source to see what WP had converted it to. This wasn’t easy, since it was indented almost beyond the boundary of the screen (while there were nested ‘li’ elements with no indentation at all).

    Thread Starter detly

    (@detly)

    Hmmm, upon closer inspection, maybe it is what I need. Now it is just my neurotic desire for code cleanliness that I have to overcome.

    Yeah, the FF Add-on doesn’t actually clean up the code it just makes messy code more readable.

    @detly

    I think we’re neat code twins. I’ve ALWAYS liked my code to be nice and neat and didn’t use software like WP for YEARS for exactly that reason. I’m nuts, heh.

    Thread Starter detly

    (@detly)

    So I’m not the only one…

    There should be a support group. (Oh, wait, it’s the W3C.)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tidy up WordPress output’ is closed to new replies.