I know that the xml language definition files have some support for bracket highlighting, which is what I've been using up until now. I have encountered an issue just recently, however, where I find need to perform custom block highlighting on slightly ambiguous cases, and I'm not very knowledgeable on how I would go about approaching such a task. Here is an example of what I want to achieve:
If (X == 1) then;
DoSomething();
While (Y == 1)
DoSomething();
End;
End;
In the above case, the carat would be on the End corresponding to the While, and would be highlighting it. Note the ambiguous "End" syntax. That is a design parameter and cannot be changed. I need some method of implementing syntax highlighting that will highlight the correct starting block. I could achieve this programmatically, but so far I have only been using an XML language file for Actipro and am unsure if it is possible and, if so, where one would approach programming it in and how. Any guidance on the matter that could be provided would be most helpful.