[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
- Re: html, css, and js modes working together, Clément Pit-Claudel, 2017/02/01
- Re: html, css, and js modes working together, Stefan Monnier, 2017/02/02
- Re: html, css, and js modes working together, Dmitry Gutov, 2017/02/05
- Re: html, css, and js modes working together, Tom Tromey, 2017/02/05
- Re: html, css, and js modes working together, Dmitry Gutov, 2017/02/05
- Re: html, css, and js modes working together,
Clément Pit-Claudel <=
- Re: html, css, and js modes working together, Stefan Monnier, 2017/02/06
- Re: html, css, and js modes working together, Tom Tromey, 2017/02/06
- Re: html, css, and js modes working together, Dmitry Gutov, 2017/02/06
- Re: html, css, and js modes working together, Stefan Monnier, 2017/02/06
- Re: html, css, and js modes working together, Lennart Borgman, 2017/02/06
Re: html, css, and js modes working together, Tom Tromey, 2017/02/06
Re: html, css, and js modes working together, Tom Tromey, 2017/02/09