Categories: CategoryEditor


To make flyspell ignore the xml-tags you can use this function:

(defun my-sgml-set-local-variables ()
  "Set buffer-local variables when loading an XML/SGML file."
  (set (make-local-variable 'ispell-skip-sgml) t)
  (set (make-local-variable 'ispell-skip-html) t))

(add-hook 'sgml-mode-hook my-sgml-set-local-variables)

or just use:

(setq ispell-skip-sgml t) 
(setq ispell-skip-html t)

I got this from the DocBook newsgroup.