Node-Red Flows in Wordpress

We've just had exactly the same question in another topic here: Wordpress plugin - oneliner code style similar to NR discussion goup

Strange coincidence....

If you updated to the latest wordpress 5.x, then their new editor lets you add a block to your post which you can identify as a code block and it will do the right thing.