Export code as SVG
Most code-image tools give you a PNG, which is fine for a message and disappointing in a document that someone will zoom into or print. This exports SVG as well: the code is real text in a real vector file, so it stays sharp at any scale, and it opens as an editable drawing rather than a flat picture. That makes it the right format for documentation, slides and diagrams, where a blurry code block is the thing readers notice first. PNG and copy-to-clipboard are here too, so you are not choosing a format at the door. As everywhere on this site, the work is done in your browser and the snippet is never uploaded.