Add-on for lowercase uppercase

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)

Regards

Nils-G Nordlundh / Sweden

If you want to start with Add-on programming, you should read this:
https://developer.thunderbird.net/add-ons/about-add-ons
If you have specific questions the developer community is very helpful:
https://thunderbird.topicbox.com/groups/addons

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();
})();

More info
http://custombuttons.sourceforge.net/forum/viewtopic.php?f=4&t=289