jEdit macros are written in the BeanShell scripting language. See the
Writing Macros
part of the jEdit user's guide (
Help
>
jEdit Help
) to find out more about BeanShell.