• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sytntax Highlighting - Where to begin?

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone point me in the write direction for creating an editor in java that enables syntax highlighting. Just links to other topics here at javaranch, links to web sites that explain this, or some key API's I should be looking at will suffice.
Thank you

------------------
Happy Coding,
Gregg Bolinger
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that the code at www.jedit.org is open source, so you can see how they did it.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Cindy. But when I downloaded the source code, and looked around, I couldn't find what I was looking for.
I think that I don't have enough JAVA training and/or experience to really look at a project that large, and find the puzzle peices I need.

------------------
Happy Coding,
Gregg Bolinger
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try reading about the flyweight design pattern in "Design Patterns" by Gamma, Helm,Johnson and Vlissides. They use a word processor as a description of how this pattern might be used.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!! I'll check it out.
------------------
Happy Coding,
Gregg Bolinger
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic