by robert » Thu Aug 05, 2010 9:37 pm
Hi David,
Yes, you certainly can integrate RSTA into a web page. To do so, you'll simply embed it into an applet. An example of an applet using RSTA can be found
here.
Here's the source for that applet (well, the applet on the page above hasn't been updated in awhile, so this source is more recent).
Check out RSyntaxTextAreaDemoApplet.java (the actual applet) and DemoRootPane.java (creates the contents of the applet, including the RSyntaxTextArea instance).
To communicate between the applet and the hosting page, you need to use
LiveConnect. This is an old but useful API that I've been meaning to play with, but haven't been able to think of an application for it that motivates me enough to work on it.

Hi David,
Yes, you certainly can integrate RSTA into a web page. To do so, you'll simply embed it into an applet. An example of an applet using RSTA can be found [url=http://fifesoft.com/rsyntaxtextarea/TextAreaApplet.php]here[/url].
[url=http://svn.fifesoft.com/viewvc-1.0.5/bin/cgi/viewvc.cgi/RSyntaxTextAreaDemo/trunk/src/org/fife/ui/rsyntaxtextarea/demo/?root=RSyntaxTextArea]Here's the source[/url] for that applet (well, the applet on the page above hasn't been updated in awhile, so this source is more recent).
Check out RSyntaxTextAreaDemoApplet.java (the actual applet) and DemoRootPane.java (creates the contents of the applet, including the RSyntaxTextArea instance).
To communicate between the applet and the hosting page, you need to use [url=http://java.sun.com/products/plugin/1.3/docs/jsobject.html]LiveConnect[/url]. This is an old but useful API that I've been meaning to play with, but haven't been able to think of an application for it that motivates me enough to work on it. :lol: