• Sometimes I have post that include some xhtml or css code and my editor is use TinyCME. My question is.. How to add my code so my code still displayed in my post.

    When I try and look on my blog, the code I write hidden or disappear.

    When I look on wordpress.com engine. The code still display well, how to do thats?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You mean you want the code to be exposed in your post – like this?

    If so, what’s happening is the browser is parsing your code as it’s supposed to – like code.

    I *believe* using the “code” button in your editor will fix this. I don’t use it myself – but I think that’s what it’s for.

    Alternatively, what I do is replace every instance of “<” with “& lt;” (remove the sapce between the “&” and the “l”) and it makes your code visible.

    backticks 🙂

    Really? You can use backticks in your posts, too? I didn’t know that! Cool 🙂 (That makes it whole *bunches* easier!)

    @doodlebee
    No, YOU should use them here to correctly display the code 🙂

    Oh! Yeah – I *did*! It still showed it as “<” – I tried it like 5 times and it still wouldn’t show it as the text I put up there. Don’t know why.

    Here, I’ll try again:

    <

    Did it work?

    edit: nope, it didn’t. I wonder why?

    &amp;lt;

    It works if you don’t mess quotes AND backticks. Forget the quotes, use backtisck and ti works.

    Noted for future reference 🙂

    Thread Starter Jauhari

    (@jauhari)

    I try add < on HTML mode on TINYMCE editor and I click save, and boom, on tinymce editor my code < was translate to < 🙁

    whats wrong?

    And sorry what is <b>backticks</b>?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to add XHTML and CSS Code to our Post’ is closed to new replies.