Languageception & grammar packages


I’m writing a syntax-highlighting package for a language that I’m writing, (basically php but with different [better, cleaner {imo}] syntax), and it can have less & js embedded in it like html can. Is there a way I can tell the highlighter to use a different language package in those regions of the file? It’d be annoying to have to rewrite the less/js highlighters within my own language package. >.<



If you look at the language-php package there is an example of how to do exactly that with regard to HTML and JavaScript:

There are a bunch of other pointers in this topic:

We like to keep the discussion of topics focused in one place, so I’m going to close this topic as duplicate of the above-mentioned topic unless there are objections?



That’s fine, thanks! I did a quick search for it and couldn’t find anything relevant, but it makes sense that the question would have been asked previously. =P
Thanks again!

1 Like

closed #4