slack-help

Need help navigating this Slack? You're in the right place!
roti 2016-02-24T18:52:33.000191Z

Hi, what is the recommended way to post code snippets?

seancorfield 2016-02-24T19:15:54.000193Z

@roti: If you click on the + to the left of the input box, it will give the option to create a snippet. A lot of people also use Gists (on GitHub) if they want others to be able to fork and/or edit code for discussion. http://refheap.com is another option (built with Clojure/ClojureScript I believe?).

roti 2016-02-24T19:16:37.000194Z

yes, I tried that, but it seemed to have created a file

roti 2016-02-24T19:16:46.000195Z

untitled, of course

roti 2016-02-24T19:17:14.000196Z

i was looking to post a simple message, but nicely formatted as a quote or code

seancorfield 2016-02-24T19:17:24.000197Z

Also, if you paste multiple lines into the input box, I think it will automatically offer to make a snippet out of it — but that may depend on how you have Slack configured (I know that multi-line code entered with three backticks is treated as separate messages by default which is silly and you have to change the default!).

seancorfield 2016-02-24T19:17:44.000198Z

You mean

Something like
this inline in the
message?

seancorfield 2016-02-24T19:18:38.000199Z

You’ll need to ensure that option is enabled in your Slack client: https://www.dropbox.com/s/17ki0mn0bh9yve6/Screenshot%202016-02-24%2011.18.18.png?dl=0

seancorfield 2016-02-24T19:19:52.000200Z

Then you can type three backticks

and some code
and more code on a new line
and then three backticks 
and the rest of your message.

roti 2016-02-24T19:20:08.000201Z

ok, so it's like in the github markdown

seancorfield 2016-02-24T19:20:14.000202Z

Yup. Mostly.

roti 2016-02-24T19:20:16.000203Z

yep, thanks

seancorfield 2016-02-24T19:20:40.000204Z

I’m not sure if it understands specific code flavors tho’… I suspect not…

roti 2016-02-24T19:27:03.000205Z

that's not so important