Page 2 of 2
Posted: Tue Jan 10, 2006 4:59 pm
by Roja
jayshields wrote:I cna tpye hwo i wana ok!?
Not if you want answers.

Posted: Tue Jan 10, 2006 5:37 pm
by jayshields
lol. Sorry

I will type like a pro frmo nwo on

Posted: Tue Jan 10, 2006 6:28 pm
by RobertGonzalez
Different text colors in a text area can be accomplished, but I am not sure how to make it dynamic. I know from some of my previous CMS development projects that IE displays HTML as the browser would display when it loads in a textarea, maintaining HTML tags and styles within the textarea.
FCK Editor (no, not the other word) is a very flexible client side rich text editor. Maybe you can combine the server-side functionality of
GeSHi with the client side functionality of FCK to get what you want?
Posted: Tue Jan 10, 2006 7:51 pm
by alex.barylski
I have spent years working with the mshtml (HTML WYSIWYG) object and writting my own code editors from scratch, both in C++ using it's native interfaces and in javascript...
I have tried a few times to write a solid code editor using just javascript and I'm sure it's possible...but likely very slow to execute...
Without revealing all my secrets (I only partially support OSS movements)...
First off, rendering a structured data format (ie: HTML) is ALOT more time consuming than a linear data format...like source code
So using a HTML editor as a source code editor...isn't the best idea...
The easiest approach, but likely painfully slow (I tried a while back)...is basically wrap each keyword, etc with a span and it's associated class ID...
Using regex to locate comments, keywords, etc...
Everytime the buffer changes though, first stripping all HTML tags...on anything of decent size...is untolerable in speed
Good luck with that!!!
Cheers
Posted: Wed Jan 11, 2006 2:37 pm
by pilau
jayshields wrote:lol I just read your post and thought, hhmm, not usually like to me to use bad grammar, read over my post, and you did misinterpret it a little.
It's only a forum anyway, I cna tpye hwo i wana ok!?

Good one man. Tyep howreve uyo wtan ot, no pbrolme.