BasinC Snippets window

BasinC Snippets window

BasinC Snippets window

The BasinC Snippets (Basinet) window is a lightweight local library for ZX Spectrum BASIC code. It lets you capture selected BASIC lines from the editor, store them in BasinCSnips.dat with a name and description, review them later, optionally renumber, and paste them back into the editor.

How to add a new snippet?

BasinC Snippets window

Just write your code into main editor window. Select the lines you want to add as a snippet. Right click and select "Add to Snippets"

Local tab

My Snippets list

Snippet details (lower pane)

Buttons and options

Add-to-library mode

Visible only when entering from “Add to Snippets” in the editor.
Saves the snippet (name/description + raw code) into BasinCSnips.dat.
You should change the name of the snippet, it's mandatory. If the name is still “New Snippet”, saving will be refused.

Typical workflows

A) Save a new snippet

  1. Select BASIC lines in the editor.
  2. Right-click → Add to Snippets.
  3. In BasinC Snippets, set Snippet Name and Short Description.
  4. Click Add to My Snippets. The snippet appears under Local → My Snippets.

B) Reuse a saved snippet

  1. Open BasinC Snippets and go to Local → My Snippets.
  2. Select a snippet to preview it.
  3. If needed, enable Renumber and set Start/Step.
  4. Click Paste into… to insert it back into your code.

C) Delete a snippet

  1. Select a snippet in the list.
  2. Click Delete!

Notes and limitations