Is there any add-on for as simple as that I mark a text ‘AAAAAA’ and then via some menu can change that to ‘aaaaaa’.
And that I want to work in seamonkey Composer.
If there is no one. What do I need for tools to write one for my self? (And / or even for others)
SeaMonkey 2.53 is Gecko 56, right? Maybe you could rewrite a simple legacy toolbar button addon.
Here is the change case code…
(function () {
String.prototype.toProperCase = function () {
return this.replace(/\w\S*/g, function (t) {
return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase();
});
};
function selectWordUnderCursor() {
if (!GetSelectionAsText()) {
goDoCommand("cmd_charNext");
goDoCommand("cmd_wordPrevious");
goDoCommand("cmd_selectWordNext");
}
}
function changeProperCase() {
selectWordUnderCursor();
var s = GetSelectionAsText();
s = s.toProperCase();
GetCurrentEditor().insertText(s);
}
function changeUpperCase() {
selectWordUnderCursor();
var s = GetSelectionAsText();
s = s.toUpperCase();
GetCurrentEditor().insertText(s);
}
function changeLowerCase() {
selectWordUnderCursor();
var s = GetSelectionAsText();
s = s.toLowerCase();
GetCurrentEditor().insertText(s);
}
changeLowerCase();
})();