RSyntaxTextArea for Web/blog

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: RSyntaxTextArea for Web/blog

Re: RSyntaxTextArea for Web/blog

Post by Guest » Thu Aug 05, 2010 10:42 pm

Perfect. Thanks for quick detailed reply!

Re: RSyntaxTextArea for Web/blog

Post 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. :lol:

RSyntaxTextArea for Web/blog

Post by davidc » Thu Aug 05, 2010 6:29 pm

Hello, I’ve been using edit area http://sourceforge.net/projects/editarea/ , in my web pages to provide code editor functionality. But, I really like the code completion and other functionalists of RSyntaxTextArea. Is there a way to incorporate RSyntaxTextArea into html page, similar to editarea? If yes could please provide sample/instructions.
Thanks

Top

cron