Programmer's Editor Demonstration - Skip Header

Programmer's Editor Demonstration

A very simple text editor that correctly and efficiently colors the source code. See the tutorial on incorporating syntax highlighting into a text editor.

To run, double click syntax.jar or try one of these command lines:
java -jar syntax.jar
java -classpath syntax.jar com.Ostermiller.Syntax.ProgrammerEditorDemo

Due to a bug in Java 1.2 that does not set the background and foreground colors of a JTextPane correctly, Java 1.3 or later is recommended unless you remove calls to .setBackground(Color.white) and recompile. (Thanks to Collin Lee for pointing this out.)