File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Advice about writing a code editor! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Advice about writing a code editor!" Watch "Advice about writing a code editor!" New topic

Advice about writing a code editor!

Sam Wang
Ranch Hand

Joined: Jul 17, 2001
Posts: 95
I want to start from a simple code editor.
It's func only include hightlight reserve word
For example,There's only a JTextArea,a Document in it,a DocumentListener...

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
The Jedit project makes available the package which implements an editor pane that will allow you to do syntax highlighting.
You could always look at the actual Jedit code but the package by itself makes for an easier read. =)
Have a look at:
Have fun!
I agree. Here's the link:
subject: Advice about writing a code editor!