WordPress.org

Ready to get started?Download WordPress

Forums

Turn off autoformat (not talking about P) (5 posts)

  1. godofcomics
    Member
    Posted 6 years ago #

    Hello, I am an advanced webdesigner and I have some serious SEPARATORS on my website, one example is this one:

    test
    <!-- Content ENGLISH -->
    </ul><ul class="portuguese-bot"><a title="666" name="666"></a></ul><ul class="portuguese-top"><a title="english" name="english"></a></ul><ul class="portuguese">
    <!-- Content ENGLISH -->
    
    test

    What I did there was create a separator based on my "own crazy mind/CSS-thingy"... can't explain, but its really cool and the only way to have this kind of separator is if I use that specific CODE with NO changes to it... BUT WordPress changes him...

    1- First the thing was created with DIVs not ULs, but I was forced to make it as a UL because WordPress converts ALL divs into P codes...

    2- Even by using ULs as CSS selectors, transforming them into BLOCKS to use them as DIVS, I still can't use it without having wordpress changing the above code to this:

    test
    <!-- Content ENGLISH -->
    <ul class="portuguese-bot"><a title="666" name="666"></a></ul>
    <ul class="portuguese-top"><a title="english" name="english"></a></ul>
    <ul class="portuguese"> <!-- Content ENGLISH -->test</ul>

    If you compare my first code, the first thing you will notice is a unclosed UL tag on top and end... But that is precisely my problem, I WANT the code to be like that.

    Look at what WordPress did to my "crazy separator thingy", he removed the /UL code from the beginning, and added a /UL code to the end, and I DONT want that, as these opened codes are implemented already inside my template... So what happens is a titanic broken layout...

    Someone had an idea once to create a code for wordpress like:

    <wp-ignore> And so I can write anything in here and wordpress WONT check or change ANYTHING, no matter what. </wp-ignore>

    I am really looking forward for that code, I really LOVE the visual editor, and find it really sad to be forced to use the non-visual text editor only because it forces auto formating of html tags, or because it converts DIVs into Ps and closes all unclosed tags.

    Sure sure... I did install:
    Text Control Plugin - By Jeff Minard (Edit/Bugfix: Graeme Findlay).
    AND
    Disable wpautop - By John Godley.

    BUT none solved my problem.

    I just want to be able to add DIV codes, and unclosed tags without having WordPress messing around, so, please guys (Devs) consider my letter here, please support the <wp-ignore> idea for the next build, I am waiting for this since version 2.1 and no one cares =(

    Idea: The visual editor would be broken if had crapy unclosed tags, so, to solve this, make it ALSO ignore whatever is inside the <wp-ignore> tag... This solves all problems for everyone.

    I do want WordPress to check the rest of my post, just don't want him to mess this separator:

    <wp-ignore>
    test
    <!-- Content ENGLISH -->
    </ul><ul class="portuguese-bot"><a title="666" name="666"></a></ul><ul class="portuguese-top"><a title="english" name="english"></a></ul><ul class="portuguese">
    <!-- Content ENGLISH -->
    
    test
    </wp-ignore>
  2. Ivovic
    Member
    Posted 6 years ago #

    what you really want is:

    http://alexking.org/blog/2008/03/30/shortcut-macros-12

    this allows you to put something like ##sep into your post, which will be replaced by your complex html separator by the plugin.

    efficient!

  3. godofcomics
    Member
    Posted 6 years ago #

    awesome, thanks, but I think it will not solve completely.

    "The shortcuts are translated before the post is saved and the resulting output is saved (not the shortcut)."

    As soon as I open the visual editor to edit my post, WordPress will convert the saved text and destroy unclosed codes... This is a solution as long as the person doesn't edit the post...

  4. sabinou
    Member
    Posted 6 years ago #

    I'm sometimes using complex tables, or embedding flash stuff in my own way, or wishing to toy with complex intricated divs, so yeah, a "wp-ignore" tag would come in really handy, that's a great idea you have.

    I hope that some day this will be available :)

  5. godofcomics
    Member
    Posted 6 years ago #

    ^^

Topic Closed

This topic has been closed to new replies.

About this Topic