Dave's Brain

Browse - Computer Tips - How do I format source code in a Slack comment?

Date: 2016apr13
Product: Slack

Q.  How do I format source code in a Slack comment?

A.  Put larger chunks in triple backquotes, for example:

```#include<stdio.h> main() { printf("Hello World"); }```
Put ``smaller inline bits`` in double backquotes.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.