Plugin samples
Text manipulation
The plugin will process selected text and convert it to uNrEaDaBlE case. Note that characters in strings are 1-based.
function MessUpCase(Sender) {
var s = Editor.SelText;
var up = False;
for (var f = 1; f <= Length(s); f++) {
if (up) {
s[f] = UpperCase(s[f]);
} else {
s[f] = LowerCase(s[f]);
}
up = !up;
}
Editor.SelText = s;
}
Script.RegisterDocumentAction("", "uNrEaDaBlE CaSe", "", &MessUpCase);