jEdit is a mature programmer's text editor. It provide a Java-based installer, for any operating system. To install jEdit on Raspberry Pi, visit http://jedit.org/index.php?page=download, click to download the Java-based installer.
Then open a Terminal, switch to the downloaded location, run it with java with -jar option:
$ java -jar <downloaded jar>
and follow the steps.