Last modified: 2013-05-17 10:29:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13302 - Implement brace matching in page editing
Implement brace matching in page editing
Status: NEW
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-03-09 15:17 UTC by Nathan Larson
Modified: 2013-05-17 10:29 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Nathan Larson 2008-03-09 15:17:16 UTC
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>).
Comment 1 Mr. Stradivarius 2013-05-17 10:29:36 UTC
I second this. We already have brace matching for Lua modules. Can we simply adapt the [[mw:Extension:CodeEditor]] code for the template namespace as well? The ability to match curly braces would be extremely useful for template editors.

Note You need to log in before you can comment on or make changes to this bug.