The way you write
These two different approaches do not necessarily highlight the superiority of the word processor; after all one could imagine an html template instead of one in OpenDocument Format or proprietary one. What it shows, however, is that a word processor deals with documents in a visual way. A text editor sticks pretty much to the text itself. The rest can be dealt with in other ways, either externally or in a programmatic method (with LaTex for instance). My point here is to stress that the two kind of tools rely on broadly different approaches.