1 Add structure only where it helps #

A paste keeps your text exactly as you wrote it. A little structure makes long text easier to scan, but formatting cannot replace clear writing.

  • Put a descriptive title at the top so the link and the printed page make sense on their own.
  • Use a heading for each distinct part of a note or a handover.
  • Keep lists short. If a list grows into a document, a shared document service fits better.
  • Leave logs and stack traces as plain text. Extra markup makes them harder to copy.

The renderer supports headings, bold and italic text, inline code, quotes, bullet and numbered lists, task lists, tables, callouts, dividers and fenced code. It escapes every text node, so pasted HTML is shown as text and never executed.

2 Mark the language for code blocks #

Wrap code in a fenced block and add a language name after the opening backticks, such as ts or sql. CopyPasta highlights fenced blocks and can also detect a language from the whole paste.

  • Name the language in the title when it is not obvious (TypeScript, SQL, nginx).
  • Keep indentation intact. It is often the part that matters.
  • Use the plain text view when you need to copy the original characters exactly.
  • Check the print layout before sending a long paste. It keeps the title, the link and the creation date on paper.

For a redaction checklist before publishing code, read sharing code snippets and logs clearly.

3 Where to go next #