Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

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

  • 4 відповіді
  • 0 мають цю проблему
  • 104 перегляди
  • Остання відповідь від cor-el

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)

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;

Вибране рішення

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

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