[Top][All Lists]

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

Re: html, css, and js modes working together

From: Clément Pit-Claudel
Subject: Re: html, css, and js modes working together
Date: Mon, 6 Feb 2017 01:50:08 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 2017-02-05 22:46, Dmitry Gutov wrote:
>> Yeah, what I mean is that font-locking does not occur, but it would be
>> good to have.  I couldn't find anything saying how this might be solved.
>> I haven't come up with any really good ideas myself.  Maybe font-lock
>> could also look at text properties to decide what keywords to use?
> Here's one way to do it: 
> https://github.com/purcell/mmm-mode/blob/master/mmm-region.el#L768-L787

Org-mode does it pretty well, too (see org-src-fontify-natively). For smaller 
snippets, see https://github.com/cpitclaudel/indirect-font-lock

reply via email to

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