User blog comment:Kirkburn/Syntax highlighting - helping you read and write code/@comment-4902411-20150309184851/@comment-4902411-20150309194850

What I was trying to say is that if suppose a template is nested within another one, for instance,, would the bar template get highlighted differently since it's nested? Some experimenting on test wikias shows both get highlighted the same way.

So, a follow-up suggestion: make the nested template have a different highlighting than that of the outer one. A lighter or darker shade, maybe? It will help greatly to debug complex templates with that kind of highlighting. This can also be expanded for tables too.