I am creating a tool for a custom language. It will contain many components, including a source code editor. What do I need to create this editor. For starters, I would like to highlight syntax, outline, and formation.
I have already developed a parser using ANTLR.
If you really need / need to create your DSL and the editor for this "manually", I suggest using the JFace Text framework to create an editor.
, , , Xtext , . DSL , .. AFAIK ANTLR . Xtext ( ) .
, Xtext - , . Xtext DSL, Eclipse, , .. DSL, .
Take a look at the JEditorPane and its associated document. This can be used for highlighting. Also see http://download.oracle.com/javase/tutorial/uiswing/components/editorpane.html for more information on how to set up a document, specifically StyledDocument.