You can't find the manual that comes with editor? Seriously?
Actually I did. You're probably referring to scripts, and I've read this section. However I'm not a programmer to write this kind of script from scratch.