Shotnest

Shotnest · Library

Keep code text and visual context together

Five code-looking lines give the sample 5 points for the Code shelf, while the word total adds 1 to Receipts; keep the image next to the copied text.

How code lines are counted

Shotnest counts lines that begin like source code: const, let, var, def, class, func, return, import, #include, SELECT, a shell prompt, a line that is only a closing brace, or an arrow =>. When three or more such lines appear, the Code shelf receives one point per line. In the sample, const, let, if (, return and the closing brace give 5 points.

Marker words are still checked at the same time. The word total is on the Receipts & orders list, so the sample also gives that shelf 1 point. Code wins with the higher score. Two lines of code alone stay below the three-line threshold; then total is the only evidence and the result is Receipts with a score of 1, which is not confident.

Original harmless example

Text
const count = 2; let total = 0; if (count) { return count; }
Expected suggested shelf
Code

Turn a code screenshot into usable text

  1. Open the screenshot in Shotnest and use Copy text to take the recognised lines.
  2. Compare indentation, quotes and brackets with the image; text recognition can drop leading spaces.
  3. Keep the file name or language visible in the screenshot when you can, so a later search finds it.
  4. Paste the snippet into an editor you control and run it there, never directly into a terminal.
Sample with five code lines
Code · 5
Only const count = 2; and let total = 0;
Receipts · 1, not confident

Where copied code goes wrong

A shelf, not a review

The Code shelf means the text has the shape of code. Shotnest does not run, lint or check the snippet for safety, and the classifier on this page only reproduces the line count and marker scoring.

Tools