Code Sharing

Paste a snippet above, pick its language, and write a line or two around it so the reader knows what it's for. Publish and send the link: a config for a teammate, a stack trace for a bug report, or a fix for someone in a chat that mangles code.

Questions

Does it keep my indentation?
Yes. Code blocks keep tabs and spaces as pasted, and Tab indents the way the chosen language expects.
Can I mix code and text?
Yes. A snippet is a full doc, so put notes, headings or several code blocks around it.
Should I share secrets this way?
We don't recommend it. Add a passcode or make it one-time for anything sensitive, but use an end-to-end encrypted tool for API keys and passwords.
How long does the link last?
You pick, from 15 minutes up to 1 day for free, or up to 30 days with Plus or a Boost. When it runs out, the link stops working.