Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #485032

    Hi,

    I am trying to display source code on a post following the wordpress documentation as here:

    https://en.support.wordpress.com/code/posting-source-code/

    but it seems it does not work.

    Even if I am trying with the documentation sample code.
    [code language=”css”]
    #button {
    font-weight: bold;
    border: 2px solid #fff;
    }
    [/code]

    the
    [code language=”css”]

    [/code]

    part is also displayed, whilst the code format does not change as is is supposed to.

    Please let me know if I am doing something wrong.

    Thanks in advance.

    #485257

    Hey MTortch!

    Please wrap your code into PRE and CODE tags as following without spaces
    <pre > <code > your code here </code ></pre >

    Regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.