just some idea
(setq htmlTagWriting nil)
(defun htmlOpeningTag () (interactive)
(insert "<>") (setq htmlStartTagMarkEnd (point-marker))
(backward-char 1) (setq htmlStartTagMarkBeg (point-marker))
(setq htmlTagWriting t)
)
(defun htmlClosingTag () (interactive)
(when htmlTagWriting
(goto-char htmlStartTagMarkEnd)
(insert "</" (buffer-substring htmlStartTagMarkBeg
htmlStartTagMarkEnd) )
(goto-char htmlStartTagMarkEnd)
(setq htmlTagWriting nil)
)
)
(local-set-key "<" 'htmlOpeningTag)
(local-set-key [tab] 'htmlClosingTag)
chris wrote:
Gian Uberto Lauri wrote:
"c" == chris <[EMAIL PROTECTED]> writes:
c> Hi, Does anyone know of a html mode that will auto insert the end
c> tags as I type. If <html> is typed, it'll add </html> straight
c> away?
html-helper-mode does something like this for some tags...
Do you have to turn it on manually? I have html-helper-mode here but
it doesn't do it. I had a look for a more recent version, but there
are loads of pages out there hosting it all with varying versions.
Thanks,
Chris
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs