This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Caută ajutor

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Află mai multe

[solved] How can I post HTML code in support.mozilla.org questions ?

  • 4 răspunsuri
  • 0 au această problemă
  • Ultimul răspuns de cor-el

more options

Hello. How can I post HTML code snippets in support.mozilla.org questions ? All HTML code is rendered and none of the usual markdown (``` etc.) works.

Hello. How can I post HTML code snippets in support.mozilla.org questions ? All HTML code is rendered and none of the usual markdown (``` etc.) works.

Modificat în de welcome

Soluție aleasă

You can escape '<' and '>' as &lt; and &gt;. You can also enclose the HTML code within <pre><nowiki>....</nowiki></pre> tags.

Citește acest răspuns în context 👍 1

Toate răspunsurile (4)

more options

Please note that any line starting with whitespace triggers preformatting (no word wrap), so it's generally more complicated to paste code here than to use a site like Pastebin.

That said, if you have a short snippet you don't mind cleaning up by hand, you can use a text editor to globally replace the opening angle brackets with the HTML entity:

Find: <

Replace with: &lt;

Te-a ajutat?

more options

Soluție aleasă

You can escape '<' and '>' as &lt; and &gt;. You can also enclose the HTML code within <pre><nowiki>....</nowiki></pre> tags.

Te-a ajutat?

more options

Thanks to both of you for your answers!

This is not quite user-friendly for new users. Can someone ask SUMO folks, if they can add a code toolbar icon ? (Not for being lazy, but other users might not know about <nowiki>.)

Modificat în de welcome

Te-a ajutat?

more options

Te-a ajutat?

Adresează o întrebare

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.