Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Thomas Kellerer" Subject: Re: javascript (rhino) sy Message-ID: <552137F227ftdU1@mid.individual.net> X-Comment-To: comp.lang.java.gui,comp.l Newsgroups: comp.lang.java.gui In-Reply-To: <1173034214.469194.236760@8g2000cwh.googlegroups.com> References: <1173034214.469194.236760@8g2000cwh.googlegroups.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 30 Date: Wed, 27 Apr 2011 15:31:29 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918289 96.60.20.240 (Wed, 27 Apr 2011 10:31:29 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:31:29 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1120 To: comp.lang.java.gui,comp.l On 04.03.2007 19:50 Timasmith wrote: > Hi, > > Withing a large system, I have an 'editor' with lets the user modify > the contents of a script. I would like to add some color for > comments, text, etc, perhaps squiggly lines under code that fails to > compile. The language I want to validate against is Javascript. > > What is the best open source code to add functionality like this to my > app (Eclipse, JEdit etc.) Not looking to have anything complex, just > some basics. Using JEdit as a plugin might work, though that adds a > lot of code and must integrate with my classes to persist the script. The "old" jEdit syntax pacakge that is available at sourceforge is probably not the "best" but for a simple editor it should be enough. It's only a single package that doesn't add too much overhaed. For apparent reasons it is not maintained any longer, but it does work for me. http://sourceforge.net/projects/jedit-syntax/ I don't think it includes JavaScript highlighting, but this shouldn't be too complicated to add. Thomas --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24