![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
[solved] How can I post HTML code in support.mozilla.org questions ?
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
Soluție aleasă
You can escape '<' and '>' as < and >. You can also enclose the HTML code within <pre><nowiki>....</nowiki></pre> tags.
Citește acest răspuns în context 👍 1Toate răspunsurile (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: <
Soluție aleasă
You can escape '<' and '>' as < and >. 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>.)
Modificat în