Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1120

Re: javascript (rhino) sy

From "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this>
Subject Re: javascript (rhino) sy
Message-ID <552137F227ftdU1@mid.individual.net> (permalink)
Newsgroups comp.lang.java.gui
References <1173034214.469194.236760@8g2000cwh.googlegroups.com>
Date 2011-04-27 15:31 +0000
Organization TDS.net

Show all headers | View raw


  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

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

javascript (rhino) syntax "Timasmith" <timasmith@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: javascript (rhino) sy "Chris Uppal" <chris.uppal@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: javascript (rhino) sy "Chris Uppal" <chris.uppal@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: javascript (rhino) sy "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000

csiph-web