Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Advice about writing a code editor!  RSS feed

 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to start from a simple code editor.
It's func only include hightlight reserve word
etc.
For example,There's only a JTextArea,a Document in it,a DocumentListener...
 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
www.jedit.org
Have fun!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!