I'm a coder and have been using slack for years with success. Not one single one of your complaints has ever been an issue for me.
Whenever I want to post a code snippet, I just use the triple backtick technique, like:
``` code goes here ```
You can also insert code in the middle of a comment with a single backtick around it: `like so`
For the most part, though, I keep my code in the Git repository, and it's pretty rare that I actually need to share a bunch of code in Slack messages. If I want to pair with another developer I just open up Tuple or Zoom and do a screen share.