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: Yuri Khan
Subject: Re: additional functionality for html-helper-mode
Date: Wed, 24 May 2017 11:46:32 +0700

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.)



reply via email to

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