// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Add line numbers to a short snippet // Not compiled or tested in-world // Setup: Edit the example inputs in the script, then touch as owner. // Stop / restore: Remove or disable. This transforms text locally and sends no external requests. // Notes: Useful for discussing a short code or config excerpt. The numbering is reported separately and should not be pasted back as executable LSL. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. string TEXT="default\n{\n\n state_entry() {}\n}"; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; list lines=llParseStringKeepNulls(TEXT,["\n"],[]); integer i; for(i=0;i