Possibly add emmet.io features within the text editor?
Looks doable, https://github.com/emmetio/codemirror#emmet-plugin-for-codemirror-4. I'll add it to the roadmap.