0

I have written the following typescript code. I would like for typescript-ts-mode to recognize that the template literal is HTML and should use the HTML tree-sitter parser for that region of text. In neovim, I could do this with tree-sitter injections. Is there a similar way to do this in emacs?

const template = document.createElement('template');

template.innerHTML = /* html */ `
  <p>Some Sample Text</p>
`;

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.