Use aspell in emacs for editing HTML pages

178 Views Asked by At

I am using the ispell-buffer command in emacs (with aspell as the backend spell checker) to check for typos in the content of HTML pages, but aspell complains at every HTML tag. Is there any way to configure it to ignore HTML tags?

Thanks in advance.

1

There are 1 best solutions below

0
On
(defun my-web-mode-hook ()
  (setq ispell-skip-html t))

(add-hook 'web-mode-hook #'my-web-mode-hook)