D. D. Brierton | 19 Jul 2003 18:31

"Smart" quotes and dashes in PSGML

I write (X)HTML documents in Emacs using PSGML mode. At the moment,
whenever I've finished a document I do various search-and-replaces to
get proper punctuation marks, such as replacing ' with ’, -- with
–, --- with —, and " with either “ or ”. I was
wondering whether anyone had written a function which would do that
automatically as I type, rather like lots of word processors do, but
which would not touch anything within a tag (such as the quote marks
around attribute values, or the comment markers)?

TIA, Darren

--

-- 
=====================================================================
D. D. Brierton            darren <at> dzr-web.com          www.dzr-web.com
       Trying is the first step towards failure (Homer Simpson)
=====================================================================

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

Gmane