Community
Participate
Working Groups
N201101270200 When in coding.html, there is a link at the top right that says, "boo". Unless this is illustrating something important it should be removed from M5. It might scare the kids.
Created attachment 187740 [details] Screen shot
The lowercase "e" that converts text to uppercase is also a bit odd, but at least it does something useful.
I agree it needs to be removed, I put this in temporarily. See the comments in coding.js.
I have a better idea for an example: serviceRegistry.registerService("editorAction", { info: function() {return {name:"Comment"};}, run: function(selectedText, text, selection) { return {text: text.substring(0,selection.start) + "/*" + text.substring(selection.start,selection.end) + "*/" + text.substring(selection.end), selection: {start:selection.start,end:selection.end+4}}; } }); This command converts the selection to a block comment. I think it is a useful example that illustrates how to use the various arguments, and does something useful enough that we can leave it in.
I released my block comment example instead.