WordPress.org

Support

Support » How-To and Troubleshooting » Question for admin…

Question for admin…

  • Hi admin ,
    just considder me as stupid for asking but why is it when i want to show a piece of code and use the proper tags like…[code] [/code] it still shows like shit….
    This is not the first time but as it says we can use those tags …..
    Allowed tags: a em strong code ul ol li blockquote.
    Put code in between backticks.
    but im willing to learn…..what do i have to use to show a code since using [code] doesnt work ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • For starters you have to use angled brackets like < rather than square ones. And backticks should be enough by themselves, you don’t need the code tag.

    Put code in between backticks.
    the key on the left of 1

    oh …but where is the [code] for then ?

    Its a formatting thing.

    oh…

    like this

    You can’t use bbcode. You have to use the html tag.
    Example:
    some code
    Outputs:
    some code

    The backticks don’t work for me. The code tag does but I find that if I use it more than once in a post it breaks. For instance if I have a bit of code then I have some plain text then another bit of code, the 1st bit of code will show the closing code tag, and the 2nd bit of code will show the opening code tag. Has anyone encountered this? Is it a bug or am I doing something wrong? My code examples have ; and @ symbols if that makes any difference. Any suggestions about what I could do as a workaround?
    thanks,
    Donna

    So can you do a bit of code that has angle brackets and ; and @ in code tags, but have 2 sets of them in code tags? That’s what seems to be breaking on my system. The 1st instance of the code in the tag is ok, but as soon as I do the second it breaks.
    What happens in backticks is the code doesn’t appear at all.
    I’ll give it a go here to see if the same happens. 2 examples in code tags.
    <link rel="stylesheet" type="text/css" href="style.css"></link>
    <link rel="stylesheet" type="text/css" href="style.css"></link>
    Two examples in backticks.
    <link rel="stylesheet" type="text/css" href="style.css"></link>
    <link rel="stylesheet" type="text/css" href="style.css"></link>

    Oh interesting. The backticks appear, but the 2 examples in the code tags disappeared. Hmm. Any ideas what the problem is? My site is not quite live yet (trying to sort out this problem 1st) otherwise I would put a link to it so you can see.
    What happens with the backtick is that they show, but the code does not. Are there any plugins that could be causing this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Question for admin…’ is closed to new replies.