Maskpad

Guide

How to share a code snippet with a link

Send code to a teammate without a repo, a gist account or a screenshot.

Pasting code into a chat app mangles it: indentation collapses, quotes turn curly and long snippets get cut off. A screenshot is worse, because nobody can copy from it. A link to a plain notepad solves both.

Steps

  • Open a new note, or type a name after the slash, such as maskpad.com/api-bug.
  • Paste the code. Maskpad looks at the text and picks a language, then highlights it. You can override the choice from the language menu in the toolbar.
  • Use the Share button, which copies the note's link, and send it. The person who opens it sees the same text, with the same indentation.

Things worth knowing

  • Tabs and spaces are preserved exactly as pasted, so Python and YAML survive the trip.
  • Maskpad supports highlighting for 20 languages, including JavaScript, TypeScript, Python, Go, Rust, SQL, JSON, YAML and shell.
  • Anyone who has the link can edit the note unless it is locked. If you only want people to read it, lock it with a password and share the password separately.
  • Use Download as file to save the note with the right extension, such as .py or .json.

Keep secrets out of snippets

Before you share, remove API keys, tokens and connection strings from the code. If you must share something sensitive, set the note to burn after one reading and read our guide on self-destructing notes first.

← All guides · Create a note