How can i wire up the ScriptSource from a ScriptRun to a DebugCodeEdit or ScriptCodeEdit, so that i can live change the code and let it compile/run, when i need it to - but let the lexer do its thing automatically, so that i get instant error feedback?
My use case is
- Single editor instance
- Clearing the source
- Overwrite the source with a script (without a file)
- Load a source from a file
- Save the source to a file
- Compile/Execute that source
- No code behind, everything is abstracted into a service that is injected into the view model
What is correct way to do this (in the simplest way possible)?