I would like to suggest some improvements on the overall code-editing experience when using Lua and HLSL nodes.
1. The pop-up code editor should have a scroll bar, otherwise editing longer code is impossible.
2. Currently the default line breaking behaviour when open up a pop-up editor is to use shift+enter, while a single enter commits the changes. I personnaly feel that this is against my code-editing habits, and feel that it should be the other way around. Perhaps this could be made a global setting otherwise everytime we open the pop-up editor we have to switch line breaking beahaviour first.
3. There seem to be a bug when switching line breaking behaviour to enter: After the switch, it doesn't seem possible to type consecutive line breaks when clicking and setting the cursor at the end of a line (we can only add one empty line after the previously clicked line, even if we hit enter multiple times). This doesn't happen when moving the cursor using arrow keys.
4. I'm not certain how the nodes are serialized, but I think saving the code snippet to a separate file could be an option, which also opens up the possibility to edit code with external code editor. And if this is feasible then a button that opens up an external code editor could be put in the code section. The path to the code editor or ultimately the cmd command syntax to be used could be set in the preferences.