If you know how to program in Java, you will find jEdit plugins very easy to write. See the
Writing Plugins
part of the jEdit user's guide (
Help
>
jEdit Help
) to find out how.