Thanks a lot Vincenzo! Excited to take a deeper look at it. By the way, I did start working on a possible python-notebook mode, with planned multi-language (markdown and python) support: https://github.com/andrewdea/enb Progress has been a bit slow due to other commitments: so far I only have a rudimentary parser that 'renders' the JSON into a markdown/python buffer. But I'm hoping to add more functionalities over the coming months. Thank you all again for all the help on this. On Fri, Nov 29, 2024 at 5:13 PM Vincenzo Pupillo wrote: > In data venerdì 29 novembre 2024 08:37:28 Ora standard dell’Europa > centrale, > Yuan Fu ha scritto: > > > On Nov 28, 2024, at 11:22 PM, Juri Linkov wrote: > > >>> That’s awesome! > > >> > > >> It's pretty much ready, the only thing I'm missing is the ability to > > >> create an Imenu with symbols from both HTML and the other embedded > > >> languages. I have tried a few approaches but it seems that it can only > > >> be done for the main language. Is there any way to do something like > > >> that? > > > > > > Imenu is a small detail that could be figured out after pushing your > main > > > work. > > Oops, sorry for the late reply. Lets’ do this: I’ll extend > > treesit-simple-imenu to support multi-language. Once we have that you can > > add imenu support for your new mode. > Thank you Yuan. > I just submitted mhtml-ts-mode for inclusion. > Please take a look at bug #74610. > @Andrew: I tried to explain as best as I can how to write a major-mode > that > handles multiple languages, check it out. > > Vincenzo > > > >