Re: [Psgml-user] Auto-inserting <![CDATA[ ... ]]>
Brought to you by:
lenst
From: Peter F. <pe...@si...> - 2004-02-22 23:10:24
|
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 |