How to format code in Slack on PC or Mac

How to format code in Slack on PC or Mac
How to format code in Slack on PC or Mac
Anonim

Learn how to share a code snippet with other Slack users, in an easy-to-read format.

Steps

Format Code on Slack on PC or Mac Step 1

Step 1. Open Slack

It can be found in the menu

Windowsstart

on PC or in the applications folder on Mac. You can also connect to your Slack team at

Format Code on Slack on PC or Mac Step 2

Step 2. Click on the channel in which you want to post your code

Your channels appear in Slack in the left column.

Format Code on Slack on PC or Mac Step 3

Step 3. Click # Message

It's at the bottom of the screen.

Format Code on Slack on PC or Mac Step 4

Step 4. Write down anything you want to include in your code

This text will appear before your code, so you can add a description or mention another user.

Format Code on Slack on PC or Mac Step 5

Step 5. Type `` '' (three backslash marks)

The key for slanted quotes is in the middle of the top rows of your keyboard. To format your snippet correctly, you'll need to enclose it between two sets of three quotes.

Format Code on Slack on PC or Mac Step 6

Step 6. Write or copy your code

Format Code on Slack on PC or Mac Step 7

Step 7. Type `` '' after the code

Format Code on Slack on PC or Mac Step 8

Step 8. Press Enter gold Return.

The code now appears in the string, in a fixed-size, easy-to-read font.

Popular by topic