Re: Auto-inserting <![CDATA[ ... ]]>
Peter Flynn <[email protected]> Sun, 22 Feb 2004 23:02:41 +0000
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Organization | Silmaril Consultants |
| Message-ID | <[email protected]> |
On Sun, 2004-02-22 at 15:55, D. D. Brierton wrote: > When working in XHTML, although I try and keep all my CSS and Javascript > in external files I occasionally have to include some stuff in the > document itself which, because it contains characters like ">", needs to > go in CDATA tags like so: The ">" character (TAGC) never needs to go in a CDATA Marked Section, as it's just character data unless there is a prior "<". The only two characters that need CDATA Marked Sections are "<" and "&" because they introduce markup. > <style type="text/css"> > /*<![CDATA[*/ > > /*]]>*/ > </style> I'm not quite clear what you're trying to do here. Can you give a full example? > 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? I've never investigated Custom Markup. Why not just record the relevant keystrokes and save them in your .emacs bound to an unused key (eg F12)? ///Peter ------------------------------------------------------- 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