Watts-Lab / researcher-portal

deliberation lab collaborator tools
0 stars 0 forks source link

Error highlighting for yaml editor window #47

Open JamesPHoughton opened 3 months ago

JamesPHoughton commented 3 months ago

As a researcher, i want to easily spot issues with my x.treatments.yaml file, so that I can fix them without getting frustrated.

One way to do this would be with validation that uses red/yellow underline squiggles to indicate problems. There may be a way to do this automatically, or to get the information we need to do it from the zod validator for the treatments. This probably needs to wait until we have that validator written.

JamesPHoughton commented 1 week ago

This might be an interesting plugin for monaco: https://microsoft.github.io/monaco-editor/monarch.html

We could actually tell it what our keywords/reserved words are and it could give them special formatting to help you know you'd gotten it right...