Natural Line Numbers
Shows Software AG Natural-style line numbers for Natural files (.NSC, .NSN, .NSA, .NSG, .NSS, .NSL, .NSP) based on the file header.
Creada por Erika Morales Hernández.
- Reads
* >Natural Source Header NNNNNN to get the starting base (default 0)
- Reads
* :LineIncrement X to get the increment (default 10)
- The first code line after
* <Natural Source Header is base + increment
- Status bar always shows the current line's Natural number
- Command toggles inline decorations which prefix each line with its Natural number
Commands
Natural: Toggle Line Decorations (naturalLines.toggleDecorations)
Settings
naturalLines.decorateOnOpen (boolean, default true)
naturalLines.zeroPad (number, default 6)
naturalLines.separator (string, default " | ")
Activation
The extension activates for files identified as natural language, covering the extensions listed above (case-insensitive).
Run (no Node required)
- Press F5 (Run Extension) to start a new Extension Development Host and open an
.NSC file to see the status bar and decorations.
Notes
- Decoration numbers are rendered in the editor content area (before the line text), not the line number gutter.
- If the header cannot be found, numbering starts at 0 and increments by 10 from the first line.
| |