Improve distinction between tags and their attributes in the rich text section. Contributed by Nico.