In some watcher/transform editing, we may need to have some syntax linting/highlighting while editing painless scripts. As of now, it is interpreted as a plain string and it is not really efficient to work. If you want me to do a PR, I might be able to work on this.