Howard Spector wrote:

> try the extra-java-font-lock.el package it will do just what you are looking
> for.  I have included the version that I am running in this message, you may
> want to check for any updates though..

I downloaded the latest version from
http://perso.wanadoo.fr/david.ponce/more-elisp.html but it highlight areas
already marked by HTML tags. What I really wanted was to *insert* those markers,
e.g. something along the lines:


(defun jex-insert-html-b()
  "Extention that insert HTML tag pair for bold at point and mark (selected
area)"
  (interactive)
    (goto-char (point))
    (insert "</B>")
    (goto-char (mark))
    (insert "<B>"))

(defun jex-insert-html-i()
  "Extention that insert HTML tag pair for italic at point and mark (selected
area)"
  (interactive)
    (goto-char (point))
    (insert "</i>")
    (goto-char (mark))
    (insert "<i>"))

(defun jex-insert-html-tt()
  "Extention that insert HTML tag pair for code at point and mark (selected
area)"
  (interactive)
    (goto-char (point))
    (insert "</tt>")
    (goto-char (mark))
    (insert "<tt>"))


etc.

I'm not Lisp literate really, so there are probably better ways of writing
these, for example to swap the insertion points if (mark) is > (point).

Did someone already do this?

cheers,

Lars



--


+--------------------------------------------------------+
| Lars Thuring                                           |
| Development Manager                                    |
|                                                        |
| Logopak Systeme               tel: (0) 4195 - 99750    |
| Dorfstrasse 40                fax: (0) 4195 - 1265     |
| 24628 Hartenholm           mailto: [EMAIL PROTECTED] |
| Germany                      http: www.logopak.com     |
+--------------------------------------------------------+


Reply via email to