Mozilla サポートの検索

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.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

  • 4 件の返信
  • 0 人がこの問題に困っています
  • 28 回表示
  • 最後の返信者: 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.

この投稿は welcome により に変更されました

選ばれた解決策

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

この回答をすべて読む 👍 1

すべての返信 (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;

more options

選ばれた解決策

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

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>.)

この投稿は welcome により に変更されました

more options