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

Steps

  1. 1
  2. 2
    Click the channel where you want to post code. Your channels appear along the left side of Slack.
    Advertisement
  3. 3
    Click #Message <channel name>. It’s at the bottom of the screen.
  4. 4
    Type 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.
  5. 5
    Type ``` (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.
  6. 6
    Type or paste the code.
  7. 7
    Type ``` after the code.
  8. 8
    Press Enter or Return. The code will now appear in the channel in a fixed-width font that’s easy to read.
  9. Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
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. This article has been viewed 66,390 times.
How helpful is this?
Co-authors: 6
Updated: February 18, 2019
Views: 66,390
Categories: Slack
Article SummaryX

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.

Did this summary help you?
Advertisement