I've seen a few attempts at "structure editors" which are keyboard driven but limit what you can type so it's always syntactically correct.
Fructure is an example which looked promising! https://www.youtube.com/watch?v=CnbVCNIh1NA
Fructure is an example which looked promising! https://www.youtube.com/watch?v=CnbVCNIh1NA