Use sgml-mode for emacs
Starting with version 23.2, the default emacs mode for xml changed.
The tal .xml are not real xml, so add the following to your ~/.emacs
(add-to-list 'magic-mode-alist
'("<!-- \\(AUTHOR\\|TITLE\\)=" . sgml-mode))
(add-to-list 'auto-mode-alist '("\\.xml\\'" . sgml-mode))Hilight a region and then hit C-c C-t will insert the opening and closing tag
Refill the text
If you downloaded a text with lines broken at 70 or so characters, you should refill it. So do the following
- C-x f 99999 (set the line at 99999 chars)
- C-x h (select all)
- M-x fill-region
You're done
