Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5063
| From | Lew <noone@lewscanon.com> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Syntax highlighting |
| Date | 2012-03-01 09:49 -0800 |
| Organization | albasani.net |
| Message-ID | <jiocqh$jlj$1@news.albasani.net> (permalink) |
| References | <4f4e2a69$0$22515$426a74cc@news.free.fr> <jilg4s$ntf$1@dont-email.me> <4f4e9526$0$32558$426a34cc@news.free.fr> <jimaov$4jm$1@dont-email.me> |
Jeff Higgins wrote: > ricoh51 wrote: >> Jeff Higgins wrote: >> ricoh51 wrote: >>>> I need to make an editor with syntax highlighting. The lexer run as I >>>> want, but I do not know how to start th GUI. I have choose a JTextPane >>>> to do that, is this a good choice? Do I need to extend DocumentListener >>>> or DocumentFilter? Who can help me to start? >>>> >>> I believe I would start by looking at how others have approched the >>> problem. >>> From the first page of results of a web search with the key words >>> swing+syntax+highlight+editor I get these open source projects: >>> RSyntaxTextArea, jEdit Syntax Package, JSyntaxPane, and a very old >>> tutorial article from Sun, "Customizing a Text Editor". >> >> Thank's [sic], but all are difficult to understand... That's why they pay the programmers the big salaries, dude. "Difficult to understand" is a pitiful, ridiculous excuse that buys you only contempt, not sympathy. Grow some stones. > These articles have been around for years. > I found them useful and fairly simple to understand a long time ago. > They are still relevant. > Hope it helps. Even if they are difficult, so what? Study harder! Or be smarter. > Customizing a Text Editor > <http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/> > > Using the Swing Text Package > <http://java.sun.com/products/jfc/tsc/articles/text/overview/index.html> > > If you decide to build the project in the article you will need to: > replace all references to packages com.sun.java with javax, This is an important point, and potentially confusing, OP, so think it through carefully and ask if you need clarification. > ignore the file GapContent.java -don't build it, it is now included in the JDK, > include in your build path tools.jar from the lib directory of your JDK > > I just built and ran this using Java 7. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Syntax highlighting ricoh51 <ricoh51@free.fr> - 2012-02-29 13:38 +0000
Re: Syntax highlighting Jeff Higgins <jeff@invalid.invalid> - 2012-02-29 10:27 -0500
Re: Syntax highlighting ricoh51 <ricoh51@free.fr> - 2012-02-29 21:14 +0000
Re: Syntax highlighting Jeff Higgins <jeff@invalid.invalid> - 2012-02-29 18:02 -0500
Re: Syntax highlighting Lew <noone@lewscanon.com> - 2012-03-01 09:49 -0800
Re: Syntax highlighting ricoh51 <ricoh51@free.fr> - 2012-03-01 22:24 +0000
Re: Syntax highlighting ricoh51 <ricoh51@free.fr> - 2012-03-01 21:16 +0000
Re: Syntax highlighting Jeff Higgins <jeff@invalid.invalid> - 2012-03-01 19:23 -0500
Re: Syntax highlighting Jeff Higgins <jeff@invalid.invalid> - 2012-03-02 11:21 -0500
Re: Syntax highlighting Roedy Green <see_website@mindprod.com.invalid> - 2012-03-02 04:39 -0800
Re: Syntax highlighting ricoh51 <ricoh51@free.fr> - 2012-03-03 13:29 +0000
Re: Syntax highlighting Jeff Higgins <jeff@invalid.invalid> - 2012-03-03 21:09 -0500
Re: Syntax highlighting Éric Marchand <eric.marchand51@gmail.com> - 2012-03-05 01:32 -0800
Re: Syntax highlighting Jeff Higgins <jeff@invalid.invalid> - 2012-03-05 05:35 -0500
Re: Syntax highlighting Éric Marchand <eric.marchand51@gmail.com> - 2012-03-05 04:59 -0800
csiph-web