I propose implementing brace matching in page editing. This would make it easier to write, maintain and troubleshoot complicated templates.
Especially when nested #if, #switch, and other parser functions are involved, it can get hard to pinpoint an error or even figure out how the template works just from looking at the markup. Brace matching is a useful type of syntax highlighting for seeing where each statement begins and ends and navigating through the markup.
Moreover, with all the variables, magic words, parser functions, etc. that have double or triple braces, it can be easy to leave off a brace somewhere and accidentally place an extra one somewhere else, resulting in subtle errors. With brace matching, it could be easier to find those mismatched braces. Some brace matching implementations ignore braces contained in comments. Mediawiki's brace matching might also ignore braces within nowikis (e.g. <nowiki>{<nowiki>).
Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/Brace_matching