help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: additional functionality for html-helper-mode


From: ken
Subject: Re: additional functionality for html-helper-mode
Date: Wed, 24 May 2017 14:27:59 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0

On 05/24/2017 12:46 AM, Yuri Khan wrote:
On Wed, May 24, 2017 at 5:13 AM, Jean-Christophe Helary
<jean.christophe.helary@gmail.com> wrote:

However, it doesn't seem to understand html, i.e., only affects CSS definitions 
enclosed within curly braces, { and }.
Ok, a quick search with "html, folding, emacs) brought these:
Keep in mind that with regard to HTML there are two possible
interpretations of folding.

* One is folding the contents between two paired tags: <p>{{…}}</p>.
* Another is folding the contents after a heading up to (but not
including) the next heading of that or higher level on the same level
of element nesting: <h2>Foo</h2>{{…}}<h1>Bar</h1>.

The first is what a typical general-purpose folding library is going
to implement. The second can arguably be called “understanding HTML”,
and is what Ken is asking for.

(And no, I don’t have any experience with HTML folding in Emacs.)

Good distinction.  Completely correct.  And hideshow couldn't do either.





reply via email to

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