emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nxml-mode parser and multi major modes


From: Lennart Borgman (gmail)
Subject: Re: nxml-mode parser and multi major modes
Date: Wed, 28 May 2008 08:21:05 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Jason Rumney wrote:

Ok, here comes the diff.

It seems that the point of this diff is to make the validation code of nxml-mode ignore certain chunks of invalid XML within the buffer, is that right?

Yes.

If so, then XML already has a mechanism for telling parsers not to parse a block of text: <![CDATA[ ... ]]>, though you may need to customize the face that is used to display the contents to avoid conflict with the other mode that you intend to use on its contents.

It is not supposed to be used in that context.

Think PHP, Jsp, Smarty, EmbPerl or any other xhtml template language. The files are simply not valid XML, but parts of them can still be parsed by the nxml-mode parser. This allows both error checking and XHTML completion.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]