It does indeed work for the above json snippet (ie it satisfies the title of the thread).
But with real world data it causes the notification popup to extend below the bottom of the screen; no scrollbar is shown.
Without a scrollbar there is no way to get to the "Close" button to click it.
This looks like a bug in the notification node?
Further, ctrl aalso selects everything in the dashboard beneath the popup.
This also looks like a bug in the notification node?
What I'm actually trying to do is display the json that defines a change node so the user can copy it and import into their editor. There are several "Set .... to" lines each containing json, so the pretty output from JSON.stringify() is not really ideal.
I've had a look at the Markdown node too but I can't seem to get the code to both display and be importable.
Edit - What I am trying to achieve is analgous to the editor's "Export a selected node in compact format" function, only with the node settings generated in the dashboard.
Good suggestion @dceejay. I can right click in the popup and Inspect to see it's makeup.
I can add
v-overlay__content {
overflow: scroll;
}
Which does create a scrollbar but it's slider is also off the bottom of the screen.
So I can scroll down and then select all the code, but only using the keyboard up/down keys.