Hello,
I use tuareg/merlin and some ppx that define syntax like {sql|…|sql} or {html|…|html} and I would like
some support for syntax hilighting and indentation within those string.
Are there some solutions ?
Cheers,
Christophe
Hello,
I use tuareg/merlin and some ppx that define syntax like {sql|…|sql} or {html|…|html} and I would like
some support for syntax hilighting and indentation within those string.
Are there some solutions ?
Cheers,
Christophe
I suppose it depends on what editor you are using. If the editor features treesitter integration (neovim, emacs, zed,…), then the way to proceed would be to write a treesitter query to extract the string to be highlighted. Then it depends on your editor.
This video may be helpful.