Wednesday, 12 October 2016

XML : How do I get LUA syntax highlighting inside of XML quotes in Sublime Text 3?

I have a situation where I end up coding a lot of LUA inside of XML strings, and it looks quite ugly, to be honest. It would be extremely nice to be able to have syntax highlighting for the LUA, since that's the main focus of the file; I'm fairly sure that this is supported (apparently SQL is highlighted inside of PHP in some cases), but I have looked for how to edit the syntax files and I'm honestly just stumped. Some of the solutions even seem to suggest I need to edit a .tmLanguage file, but I can't find any of those files and none of the sublime-syntax files look like the same kind of format.

If it makes the situation any easier, the strings containing the LUA always begin with "%function(self) and they always end with end", and I only really want this highlighting functionality in XML.

No comments:

Post a Comment