MediaWiki talk:Gadget-CodeEditor.js/LQT Archive 1

Couple of issues
--Yair rand 08:30, 13 April 2011 (UTC)
 * Brackets and parentheses inside strings, comments, and regexes "match up" to those outside them.
 * Alt-comma to focus the textbox doesn't work.
 * Any Hebrew letters with vowels under them ("אְ") causes the rest of the line to show the cursor in the wrong place.

Highlighting issue should get reported upstream; the hebrew stuff might be RTL-specific or it might be a general issue with text assumptions, but either way is upstream issue again so we'll want to collect that... The access key is probably on our end, I'll see what I can do to tweak it. (Also, the talk page shouldn't go into this editor. ;) --brion 17:09, 13 April 2011 (UTC)

Maybe add a "(using Code Editor)" to the edit summary to aid propagation?--Eloquence 20:22, 13 April 2011 (UTC)
 * Excellent idea -- I stuffed that in along with resizable edit area. :D --brion 00:28, 22 April 2011 (UTC)
 * Could you change the link depending on which site the script is? This would make edits like this to have blue links to MediaWiki wiki instead of red links to the local wiki. Helder 23:59, 3 May 2011 (UTC)
 * Hmm, I think I can work around that -- will test momentarily! --brion 00:19, 4 May 2011 (UTC)
 * Ok, updated version should point to CodeEditor which should work correctly when the gadget is loaded from other Wikimedia wikis. --brion 00:23, 4 May 2011 (UTC)


 * If a script was created without the CodeEditor, and uses tabs for indentation, when we edit the code using the gadget it mess up with the alignment. See this example, where the added lines were indented using the CodeEditor, but they are converted to spaces while the tabs in the other lines are not. The result is a script wich looks good while we are editing it, but it awful after the page is saved. Helder 22:21, 12 May 2011 (UTC)