How to enable html tag pair highlighting mode in Ergoemacs

606 views Asked by At

How to enable HTML tag pair highlighting mode in Ergoemacs.

I'm using the Ergo- version of Emacs on Windows 7 -- i.e., Ergoemacs.

I found a thread that deals with a similar issue -- i.e., sgml and xml tags:  Emacs matching tags highlighting

The suggested solution in that other thread was to use a library called hl-tags-mode.el, which is located at the following Github link:

https://github.com/deactivated/hl-tags-mode/blob/master/hl-tags-mode.el

I copied that hl-tags-mode.el library to my .emacs.d/ folder and pressed Alt-a hg-tags-mode -- Emacs gives me a message that states "No Match".


In the end: I let go of ergoemacs and the following steps worked:

  1. Download emacs-24.3-bin-i386.zip from the web
  2. Unzip to d:\emacs-24.3\
  3. Download hl-tags-mode.el to D:\emacs-24.3\site-lisp\
  4. Add

(require 'hl-tags-mode) (add-hook 'sgml-mode-hook (lambda () (hl-tags-mode 1))) (add-hook 'nxml-mode-hook (lambda () (hl-tags-mode 1)))

to C:\Users\Name\AppData\Roaming.emacs

Start up emacs and open an html file and voila! matching tags are highlighted

0

There are 0 answers