Skip to content

Add syntax highlighting to json + godot array save values - #609

Merged
tudddorrr merged 1 commit into
developfrom
save-value-nodes
Oct 11, 2026
Merged

tudddorrr merged 1 commit into
developfrom
save-value-nodes

Conversation

@tudddorrr

@tudddorrr tudddorrr commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

JSON values render as JSON

  • Save values holding a JSON document now pretty-print and colour-code inside the node, instead of collapsing into one flat value: {...} row. Highlighting is one regex pass, no new dependency.
  • Covers values stored as strings, encoded twice ("{\"coins\":383131}"), and Godot var_to_str containers like Array[String]([...]).
  • Anything that is not a document (1.50, true, null, "zip") still prints exactly as stored, so no row disappears.

Nodes size themselves

  • Node width now comes from the browser, not from writing the measured size back onto the node: that rounded the width down and wrapped or clipped long JSON values.
  • Long lines wrap under their own indentation rather than at the margin.

Copy button

  • Only a row that holds a value (value: …) offers copy, so an array label like value [3] no longer does.

@tudddorrr tudddorrr changed the title Expand JSON-encoded save values into node subtrees Add syntax highlighting to json + godot array save values Oct 11, 2026
@tudddorrr tudddorrr added the enhancement New feature or request label Oct 11, 2026
@tudddorrr
tudddorrr merged commit c634be1 into develop Oct 11, 2026
4 checks passed
@tudddorrr
tudddorrr deleted the save-value-nodes branch October 11, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant