A little bit (ok, a lot) stuck on a language extension

Generally speaking, you can’t: Nova does not allow extending existing syntaxes. However, with some syntaxes, and depending on what you intend to inject, you can achieve this by strategically including the original syntax in your own. This seems to work rather well for HTML based template languages; see here for an example (not my code, just the first example coming to my mind; also note that example does not seem to add custom HTML tags to the language, so YMMV).

1 Like