ChatGPT → PDF · Local

What to do when Excerpt includes Copy code buttons as text inside or beside a snippet

If Excerpt includes Copy code buttons as text, recapture the code block more tightly and delete any file that treats a 'Copy' label as part of the command.

Also on Microsoft Edge Add-ons

Many chat UIs put a 'Copy' or 'Copy code' control on a snippet, and a slightly wide selection can save that label as if it were part of the command. If Excerpt includes Copy code buttons as text, recapture the block more tightly, preview the first and last lines, and never run a command that starts or ends with a leftover 'Copy' word.

This is not the mid-token wrap page, not the Markdown fences page, and not the line-numbers page (that is a related but different chrome problem). The job is a Copy/Copy-code (or similar) widget saved as body text. The capture path is the ChatGPT to PDF workflow for what is actually visible on the page.

When Excerpt includes Copy code buttons as text, recapture the block tightly

  1. In preview, look at the first and last lines of every code block. If you see 'Copy', 'Copy code', 'Copied', or a language label stuck to the command, the selection included the widget.
  2. Recapture from the first real token of the snippet to the last, staying inside the block. Multi-select just the code if a drag keeps grabbing the toolbar.
  3. Keep Markdown as the file you will paste from, and skim it for leftover widget words before you run anything.
  4. Delete or replace already-saved clips that have 'Copy' sitting in the command, and if you already shared one, send a corrected file.

Honest limits

  • Excerpt cannot always tell a toolbar button from body text when the site marked both as ordinary text.
  • Line numbers from a code viewer and mid-token wrapping are different symptoms with their own pages.
  • Screenshot mode can hide the button but is a poor source to paste a command from.

Excerpt is intentionally small: a Chrome/Edge extension, a multi-select clip of ChatGPT, Claude, Gemini, or webpage text, a clean PDF or Markdown export, and a searchable local library. Free is 100 clippings and 5 tags. Pro is $29 one-time, with unlimited clippings and a backup file you move yourself. It does not sync to a phone automatically and does not summarize the clip with an AI model.

The rule is the same as with wrapped PDFs: do not run a command until you have looked at the first and last lines. A leftover 'Copy' is obvious once you are looking, and disastrous if you are not.

Some UIs also inject 'Ask ChatGPT', 'Run', or a language chip into the same toolbar. Treat all of those as chrome, not as part of the snippet. If you file runbooks, prefer a tight Markdown block plus a note of the official repo or docs, and say in the title when a clip is 'code only.'

Prefer Chrome? Use the official Chrome Web Store listing. Prefer Edge? Use the official Microsoft Edge Add-ons listing. Either way, the searchable library is local to that browser profile.

FAQ

Why is the word Copy sitting above my snippet?

The selection included the snippet toolbar. Recapture inside the block and drop any file that still has the widget text.

How is this different from captured line numbers?

Line numbers come from a gutter in a viewer. This page is a Copy or similar button saved as if it were part of the command.

Install Excerpt and save your next clip as a clean PDF

Free: up to 100 clippings and 5 tags. Pro is $29 one-time for unlimited + library backup import/export.