WordPress.org

Ready to get started?Download WordPress

Forums

Workable fixed width tag? (5 posts)

  1. mondalaci
    Member
    Posted 9 years ago #

    I cannot post with fixed width text in Workpress. I thought the CODE tag exactly does that but when I tried it, I realized it doesn't work. I tried various other HTML tags too like PRE or TT, but Workpress seems to escape them all along with the CODE tag.
    So what should I do? I'm using Workpress 1.2.1.
    Thanks!

  2. Rémi Prévost
    Member
    Posted 9 years ago #

    <pre> tag works well with fixed width text.

    but Workpress seems to escape them all along with the CODE tag.

    What do you mean? It changes <pre> to ??

  3. NuclearMoose
    Member
    Posted 9 years ago #

    Set up a class for a selector and use a mono-spaced font like Courier, for example.

  4. mondalaci
    Member
    Posted 9 years ago #

    I just realize that I misread the generated XHTML code. The WordPress converter indeed not escapes the <pre> tag, but the - (minus) characters get converted to the — or — entity.
    I don't really understand why this conversion required. Because of this, minus characters in the preformatted text have smaller width than the rest so that's why I haven't percieved the text as fixed width.
    Any developer remark about the minus sign conversion policy?

  5. mondalaci
    Member
    Posted 9 years ago #

    In my above post on the — or — entities I meant the #8212 or mdash entities. I didn't know WordPress converts them.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.