"Smart" quotes and dashes in PSGML

"D. D. Brierton" <[email protected]> 19 Jul 2003 17:31:50 +0100
Newsgroups gmane.emacs.psgml.user
Organization DZR Web Development
Message-ID <[email protected]>
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 &rsquo;, -- with
&ndash;, --- with &mdash;, and " with either &ldquo; or &rdquo;. 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            [email protected]          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