SGML-editing mode with parsing support