• Okay so after a frustrating run of searching through the forums, and running across some confusing or vague instructions on shutting off autop (and not even sure if this is the answer to my problem!) I’m putting up a new post. I apologize if this has been answered before, and if so, please direct me.

    But I like writing my own HTML. I don’t mind that WordPress will create ellipses and smileys and all of that. Also, when I’m feeling a bit lazy and want to concentrate more on blogging than actual writing-of-code, I use the rich text editor.

    Often times though, for instance in the crafting of pages, I will click the little HTML icon and type in code. I love clean code. I love clean, semantic markup and my own indents (no tab characters please!).

    But after I post it, if I want to edit it, clicking on that HTML button totally screws up my indents! If it’s a tiny page, that’s okay (but it shouldn’t be) but for a HUGE one, it’s a pain!

    I’m sorry if I seem a bit irritated, this has been bugging me all day. If someone can please tell me how to have WordPress leave my code formatted the way I type it, I would be forever appreciative.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Why not turn off the WYSIWYG editor and just use the “classic” editor that won’t mangle your html? Seems like that’d be a lot simpler if you’re comfortable doing your own formatting…

    Users -> Your Profile.
    Scroll to the bottom.
    Uncheck the box for “Use the visual rich editor when writing”

    Save.

    Thread Starter hapworth

    (@hapworth)

    Holy Jesus thank you :P.

    I still do wish that I could use the visual editor when I like without having to go through those options to switch it. But that would no longer be a support question. Would be a cool little thing to have though (what I thought clicking the HTML button did essentially).

    It does seem peculiar how the visual editor does put in it’s own indents. The code, if you’ll excuse me, is downright ugly, at least as formatting goes.

    But anyways, thanks. You saved me from losing my mind :P.

    Unfortunately WP will still mangle the code in representation, even with the RTE (and auto correction) turned off.

    Elaborate?

    Hi HandySolo,

    BR tags are disregarded (either html or xhtml versions), tabular data get thrown together/around, para-tags and other tags get curiously meshed – there are quite a few instances. Have a look through the forums, there’s enough mention about problems even with the RTE and correction turned off.

    This is my main and major criticism of WordPress: there is NO way to input clean code with it out of the box. This – to me – sets WP severely back among all other OS blog softwares. The Technorati feed problem is nearly as bad, but actually the one thing you want from a publishing system is to do what you want – precisely if you want precisely.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stop reformatting my HTML!’ is closed to new replies.