emacsnxhtml

Emacs, nxhtml how to highlight or jump to the closing html tag?


I'm using emacs with nxhtml to edit my HTML files but I can't find out how to highlight or jump to the closing HTML tag?

It sounds like an easy and stupid question but i really can't find it. Maybe I'm not looking for the right thing.


Solution

  • I use functions from sgml-mode:

    You can always remap them to more handy shortcut for your major mode, i.e.:

    (add-hook 'html-mode-hook
     (lambda ()
     (define-key html-mode-map (kbd "<M-left>") 'sgml-skip-tag-backward)
     (define-key html-mode-map (kbd "<M-right>") 'sgml-skip-tag-forward)
     )
    )