Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Elasticsearch in Action this week in the Big Data 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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Advice about writing a code editor!