This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.
The wikiHow Tech Team also followed the article's instructions and verified that they work.
This article has been viewed 66,390 times.
Learn more...
This wikiHow teaches you how to share code with other Slack users in an easy-to-read format.
Steps
-
1Open Slack. It’s in the menu on a PC, or the Applications folder on a Mac. You can also sign in to your Slack team at https://slack.com/signin.
-
2Click the channel where you want to post code. Your channels appear along the left side of Slack.Advertisement
-
3Click #Message <channel name>. It’s at the bottom of the screen.
-
4Type any text you want to include with your code. This text will appear before the code—you may want to write a description or mention another user.
-
5Type ``` (three backticks). The backtick key is near the top-left corner of the keyboard. To properly format code, you’ll need to sandwich it between two sets of three backticks.
-
6Type or paste the code.
-
7Type ``` after the code.
-
8Press ↵ Enter or ⏎ Return. The code will now appear in the channel in a fixed-width font that’s easy to read.
About This Article
1. Open Slack.
2. Click a channel.
3. Click the message box.
4. Type any text that isn’t code.
5. Type ``.
6. Type or paste the code.
7. Type ``.
8. Press ↵ Enter or ⏎ Return.