About the "string" embedded to the label of "code"?

  • Unknown's avatar

    Hello,

    Why the “<string>SQL</string>” embedded to the label of “” has still shown “<string>SQL</string>”?

    such as, I do this – “<code language=”sql”><string>SQL</string>“.

    Thank you very much.

    Best Regards
    Quanwen Zhao

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    hi,

    When I save this in post:

    [code language="sql"]
    &lt;string&gt;SQL
    &lt;/string&gt;
    [/code]

    It becomes this:

    [code language="sql"]
    SQL
    [/code]

    Are you expecting something else ?

  • Unknown's avatar

    Sorry, kosiew

    I’ve made a mistake – “string” and it should be “strong”, only I make my title be bold on the label – code between “" and "“.

    According to your suggestion, I’ve replaced “<” with “<” (similarly, replacing “>” with “>”).

    Nevertheless, my page has still shown – such as, SQL.

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    Sorry, kosiew

    I’ve made a mistake – “string” and it should be “strong”, only I make my title be bold on the label of code – between and .

    According to your suggestion, I’ve replaced “<” with < (similarly, replacing “>” with >).

    Nevertheless, my page has still shown – such as, SQL.

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    Sorry, kosiew

    I’ve made a mistake – “string” and it should be “strong”, only I make my title be bold on the label of code.

    According to your suggestion, I’ve replaced “<” with “<” (similarly, replacing “>” with “>”).

    Nevertheless, my page has still shown – such as, SQL.

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    hi,

    Are you trying to highlight SQL ?
    Maybe this will work for you:
    https://screenshots.firefox.com/e0On7PDZRLYyKrLs/wordpress.com
    https://screenshots.firefox.com/iUNCBCVscAfzueyo/wp20180808.com

    Otherwise, if you are trying to highlight Oracle keywords, use the Oracle convention of entering keywords in UPPERCASE eg

    SELECT
    1
    FROM dual;

  • Hi there,

    On what post are you trying to embed the code? Can you please give a direct link to the post, or the post title if it’s a draft?

    Also please post the exact code you’re trying to use here and between backticks so the forums won’t render it.

  • Unknown's avatar

    Hello, kosiew and kokkieh

    I don’t want to highlight my code, only want to be bold in the label of code.

    My code content preformatted is as follows,

    [code language="css"]
    <strong>SQL and Declarative Programming Languages</strong>
    ......
    [/code]

    But when I view it, and it still show below,

    SQL and Declarative Programming Languages
    ……

    By the way, I have confused 2 points as follows,

    (1) How to cancel my repeat postings to you?
    (2) Do you have used the Firefox Screenshots is for Mac? Because I used it which is for Windows and I’ve installed the latest version yesterday, unfortunately I don’t share the website of screenshots. Could you recommend some other easy screenshot tool to me?

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    hi,

    Do you have used the Firefox Screenshots is for Mac?

    Are you on Windows or Mac ?
    From your post about installing multiple Oracle versions on Windows, I thought you were using a Windows machine.

    Could you recommend some other easy screenshot tool to me?

    This is the support page on making screenshot.

    Take a Screenshot


    Please upload it to your Media Library and share the media link.

    This thread has an example of the author sharing his screenshot via Media Library.
    https://en.forums.wordpress.com/topic/image-not-displayed-in-full-size/

  • I don’t want to highlight my code, only want to be bold in the label of code.

    HTML formatting shouldn’t apply within the code brackets… it’s supposed to just show the code you’ve used. If you’re using CSS for example, your strong tag isn’t valid CSS anyway, so it shouldn’t be used there.

    I’d recommend putting your label above the code snippet instead.

  • Unknown's avatar

    Hello,

    To kosiew

    Yep, just as what you guess, my laptop’s OS is Windows 10.

    To supernovia

    I got it, thanks for your nice advice.

    Thank you very much, everyone.

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    Hi, kosiew

    About the extension function of Firefox – “Screenshots“, currently I’ve known how to configure it (It isn’t related to OS‘s platform – whatever, Mac or Windows or Linux).

    Please see my 2 screenshots as follows,

    (1) https://screenshots.firefox.com/HEDpX55yCALCMW6O/wordpress.com
    (2) https://screenshots.firefox.com/9mIv44Nm8uYMKmHL/quanwenzhao.wordpress.com

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    hi,

    From your previous screenshots, you seem to be using the [code] shortcode for a block of non-code text.
    For non code text, you will get more relevant options without using the [code] shortcode.

    For example:
    For non code text, you will get more relevant options without using the [code] shortcode.

  • The topic ‘About the "string" embedded to the label of "code"?’ is closed to new replies.