Hi, what is the recommended way to post code snippets?
@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?).
yes, I tried that, but it seemed to have created a file
untitled, of course
i was looking to post a simple message, but nicely formatted as a quote or code
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!).
You mean
Something like
this inline in the
message?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
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.ok, so it's like in the github markdown
Yup. Mostly.
yep, thanks
I’m not sure if it understands specific code flavors tho’… I suspect not…
that's not so important
awesome http://cdn.theatlantic.com/assets/media/img/mt/2014/09/The_More_You_Know/lead_large.png?1430153051