<%bte.doc super="syntax.bte"%> <%bte.tpl name=pageTitle%>Programmer's Editor Demonstration<%/bte.tpl%> <%bte.tpl name=keywords%>text editor,text,programmer,editor<%/bte.tpl%> <%bte.tpl name=description%>A simple text editor with syntax highlighting written in Java.<%/bte.tpl%> <%bte.tpl name=bareditor%>Programmer's Editor<%/bte.tpl%> <%bte.tpl name=pageContent%>

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.)

<%/bte.tpl%> <%/bte.doc%>