This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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!
jQuery in Action, 3rd edition