Re: nXML and embedded code in templates

Lennart Borgman <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <CANbX367zSO2d8=3qcAmdm8EoWL7HtkuSUbHgNQS2CGWFZmrniw@mail.gmail.com>
On Sat, Sep 22, 2012 at 2:13 AM, Dmitry Gutov <[email protected]> wrote:
>
>
>
> Hi all!
>
> Like some, I'd like to be able to use nxml-mode for editing ERB
> templates. Or EJS and JSP, they use similar syntax.
>
> sgml-mode in Emacs already tries to recognize this type of tags, and
> here's a few years old patch for xmltok.el that does something similar:
>
>
> https://github.com/purcell/emacs.d/commit/a77629d6a3130d710386e0553a1cbb640797c7e3
>
> What do you think of the goal? Should nXML be useful for these types of
> files? Does the patch take the right approach?
>
> --Dmitry

I like the goal, but unfortunately you can not reach it currently. I
have tried this in nXhtml if you are interested.

The problem is that nXML parses the buffer using primitives that you
can not restrict to a part of the buffer. I have suggested that the
primitives in Emacs should be changed to make such a restriction
possible, but that is a very difficult job on very low level in Emacs.
(You have to know quite a bit about how buffers are stored and handled
etc.)


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.