```
Is widely supported to add code. E.g. in Slack, Confluence...
Is widely supported to add code. E.g. in Slack, Confluence...
Yes, I use that wherever it exists. It's great, and you're lucky when it's there. I wish it was everywhere. But as long as it's not, for everything else, there's screenshots.
And no, no SMS client I've ever seen uses a monospaced font.
It depends on the terminal. Some will actually preserve the line breaks vs soft wraps. Those terminals will reflow the text when you resize the window.
But if you already have the file you might as well run something like `xclip <file` to copy its contents directly to the clipboard.
As for attaching a file, I'm usually screenshotting small amounts of code - usually of the ephemeral variety.