Use the https://microsoft.github.io/monaco-editor/ instead of just a regular textarea to make code editing more pleasant.
https://forum.sealcode.org/t/about-the-configurable-html-rewriter-category/2133
Make sure to use a Stimulus component to achieve that in order to not break the SPA nature of the GUI