Outlining text editor for writing well-structured text