Text getting displayed wrong

  • Author
    Posts
  • #211006

    linuxowns
    Member

    I have a linux related blog and this means I have to display commands on my blog.

    People should be able to copy/paste these commands, but sometimes wordpress shows the text wrong, thus the command doesn’t work anymore.

    I need to give this frequently:

    – – (without a space between the 2 -) but wordpress displays this as –

    This means the command is wrong and doesn’t work.

    If I write it, it gets displayed correctly, but once I publish the post, it displays it wrong.

    Can this be fixed?

    #211120

    tellyworth
    Staff
    #211122

    linuxowns
    Member

    Thanks for mentioning it, it might be usefull in the future, but it’s not what I need now.

    It are just cli commands.

    #211130

    katm
    Member

    Does wrapping it in pre tags work?

The topic ‘Text getting displayed wrong’ is closed to new replies.