dtab for VS CodeSyntax highlighting, a live JSON preview and a Δ file icon for dtab (Delta Tab) is a config format made of tab-separated paths: one line is one path into a tree, and later lines are deltas on top of earlier ones. Format, parsers and a live demo: https://github.com/RyannDaGreat/dtab Object keys, leaf keys, values, comments (entries starting with a space) and invalid keys each get their own scope, so any color theme applies. The Tab key inserts a tab. To see the whitespace that carries the structure, press the whitespace button in the editor title bar
(a Δ with a dot), or run Inside a multiline string (a Cmd+/ (Ctrl+/) comments and uncomments the entries a selection touches, even part of a line, or every entry of a cursor's line: when all of them are comments each loses its leading space, otherwise each gains one, so toggling twice gives the text back. Vim and the demo do the same. The preview button in the editor title bar (or Cmd+K V / Ctrl+K V) opens the file's tree as JSON beside it, updated as you type. While the file does not parse, it shows the parser's message with the line number. |