To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly.
The easiest way to do that is to click the 'Preformatted Text' button in the toolbar:
Then paste in your code or flow json.
On standard US English keyboards, this is on the same key as the ~
character.
```
[{"id":"bbef23cc.4e7f18","type":"inject","x":100, "y": 50, "wires":[[]]}]
```
You can see the quotes remain untouched.
When sharing Flow JSON, add the text flows
after the first set of back-ticks:
```flows
[{"id":"bbef23cc.4e7f18","type":"inject","x":100, "y": 50, "wires":[[]]}]
```
This will then get rendered as a flow:
[{"id":"bbef23cc.4e7f18","type":"inject","x":100, "y": 50, "wires":[[]]}]
For code from a Function node, first without the backticks:
msg.payload = "Hello There";
return msg;
And again, with the backticks:
msg.payload = "Hello There";
return msg;
The added syntax highlighting also makes it much easier to read.
This should be used for any code samples, such as flow JSON, JavaScript, html or XML samples.