Just need a pointer in the right direction...

N

Nic

Hi - I am battling to find the a resource, so maybe some one in here can
help :)

The problem is as follows: I am trying to build a mod_perl source code
editor for the web - to edit Perl source code in a browser. The trick is
that I want to add syntax highlighting to a HTML TEXTAREA tag. There are
millions of resources for just normal text color and background colors
(and images), but nothing on keyword highlighting.

Any help will be appreciated.

O yes - this is for an Open Source project I am planning :)

Cheers

Nico
 
A

A. Sinan Unur

The problem is as follows: I am trying to build a mod_perl source code
editor for the web - to edit Perl source code in a browser.

Interesting, but not necessarily on topic here, unless it is written in
Perl.

The trick is that I want to add syntax highlighting to a HTML
TEXTAREA tag. There are millions of resources for just normal
text color and background colors (and images), but nothing on
keyword highlighting.

See http://www.kevinroth.com/rte/demo.htm

Then, find an editor whose highlighting features you like, and see how
they do it. Now, it is time to start thinking about whether you can
implement something like that using Javascript on the browser.

That, of course, is off-topic here.
O yes - this is for an Open Source project I am planning :)

That still does not make the question topical.

Sinan
 
M

Matt Garrish

Nic said:
Hi - I am battling to find the a resource, so maybe some one in here can
help :)

The problem is as follows: I am trying to build a mod_perl source code
editor for the web - to edit Perl source code in a browser. The trick is
that I want to add syntax highlighting to a HTML TEXTAREA tag. There are
millions of resources for just normal text color and background colors
(and images), but nothing on keyword highlighting.

You won't find any help here, I suspect. Whatever solution you're planning
would be client side, and Perl wouldn't be helpful for that. I suspect, in
fact, that you may be SOL in this endeavour. Textarea boxes do not allow you
to selectively choose sections of text to highlight in different colours.
Even if you go with MS's richtextbox implementation, you're still going to
have to write some hefty javascript to pull off syntax highlighting. Your
best hope may be a java applet.

As people are wont to say, you should really try a more suitable forum like
one of the comp.infosystems.www.authoring.* groups...

Matt
 
N

Nic

Thanks - I wil try the suggested group.

You won't find any help here, I suspect. Whatever solution you're
planning
would be client side, and Perl wouldn't be helpful for that. I suspect,
in
fact, that you may be SOL in this endeavour. Textarea boxes do not allow
you
to selectively choose sections of text to highlight in different colours.
Even if you go with MS's richtextbox implementation, you're still going
to
have to write some hefty javascript to pull off syntax highlighting. Your
best hope may be a java applet.

As people are wont to say, you should really try a more suitable forum
like
one of the comp.infosystems.www.authoring.* groups...

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,946
Members
47,497
Latest member
PilarLumpk

Latest Threads

Top