Download
Get text-lines.js from the repository.
TurboWarp extension guide
Count lines, read one line, or copy every line into a Scratch list with three focused blocks.
Quick start
Text Lines writes directly to Scratch lists, so it must run without the extension sandbox.
Get text-lines.js from the repository.
In TurboWarp Desktop, open Extensions, choose Custom Extension, then load the downloaded file.
Enable Run extension without sandbox when TurboWarp asks for permission.
How it works
Text Lines separates the input wherever it finds a line ending, then uses the resulting lines in the block you choose.
Apple Banana Cherry
Block reference
Returns how many lines the input contains.
Returns the line at the requested position.
Splits the input and writes each line as one list item.
Details
LF (\n), CRLF (\r\n), and CR (\r) are all treated as a single line ending.
The selected list is updated as soon as the command block runs, and list monitors refresh automatically.