WordPress.org

Ready to get started?Download WordPress

Forums

Question for admin... (11 posts)

  1. john1000
    Member
    Posted 9 years ago #

    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 ?

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    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.

  3. OperaManiac
    Member
    Posted 9 years ago #

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

  4. john1000
    Member
    Posted 9 years ago #

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

  5. Root
    Member
    Posted 9 years ago #

    Its a formatting thing.

  6. john1000
    Member
    Posted 9 years ago #

    oh...

  7. Root
    Member
    Posted 9 years ago #

    like this

  8. codergurl
    Member
    Posted 9 years ago #

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

  9. xor
    Member
    Posted 9 years ago #

    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

  10. xor
    Member
    Posted 9 years ago #

    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>

  11. xor
    Member
    Posted 9 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.