This wikiHow teaches you how to share code in an easy-to-read format with other Slack users.
Steps

Step #1. Open Slack
You will find this in the

menu on a PC or in the Applications folder on a Mac. You can also sign up at

Step 2. Click on the channel where you want to post the code
Your channels will appear on the left side of Slack.

Step #3. Click on #Message
You will find this at the bottom of the screen.

Step 4. Type any text you want to add to your code
This text appears before the code. You may want to write a description or mention another user.

Step 5. Type ``` (three quotes)
The quotation mark key is located in the top left corner of the keyboard. To format the code correctly, put it between two sets of three quotes.

Step 6. Type or paste the code

Step 7. Type ``` after the code

Step 8. Press ↵ Enter or ⏎ Return.
The code is now displayed in the channel in a fixed width font that is easy to read.