Re: Auto-inserting <![CDATA[ ... ]]>

"D. D. Brierton" <[email protected]> Mon, 23 Feb 2004 10:50:42 +0000
Newsgroups gmane.emacs.psgml.user
Organization DZR Web Development
Message-ID <[email protected]>
On Sun, 2004-02-22 at 17:54, Syd Bauman wrote:
> > Could someone recommend some handy way of including the commented
> > CDATA stuff with the minimum of typing? Is that what Markup ->
> > Custom Markup is for?
> 
> Yes, at least that's what I use Markup -> Custom Markup for. This
> may also help with your namespace insertion.
> 
> I run the following code inside a function that is called by
> sgml-mode-hook. 
> 
>      ;;
>      ;; I insert CDATA marked sections pretty frequently ...
>      ;; 
>      (add-to-list 'sgml-custom-markup '("CDATA section" "<![CDATA[]]>"))
>      (add-to-list 'sgml-custom-markup '("TEI example" "<eg>\n<![CDATA[\r]]></eg>"))

Ah nifty. That looks like just what I need. Thanks a lot. I believe it
will also help with the XHTML namespace problem too.

-- 
=====================================================================
D. D. Brierton            [email protected]          www.dzr-web.com
       Trying is the first step towards failure (Homer Simpson)
=====================================================================



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click