User talk:Ais523/bracketmatch.js

From Wikipedia, the free encyclopedia

[edit] Issue with no preview

Interesting script. Of course, the first thing I noticed that non-admins cannot use it on protected templates :) —AlexSm 15:00, 14 May 2008 (UTC)

Fixed. Lots of my other scripts stopped it working when I tried to use it as a non-admin on a protected template, though; it worked when I disabled all scripts but it. --ais523 17:29, 14 May 2008 (UTC)

[edit] Onclick

I think a good additional feature would be to highlight (with background color, for example) the matching braces on mouse click (for several seconds). —AlexSm 15:00, 14 May 2008 (UTC)

OK, I've implemented that as well; if you click a set of braces, both it and the set it matches are higlighted in black for 3 seconds. --ais523 17:44, 14 May 2008 (UTC)