Hey all,

I'm looking at writing an extension for htmlArea to add syntax highlighting to PHP code dynamically as it's typed or more specifically on every new line. I was wondering if there was a way I could rn a function on every new line, whether they hit enter or it goes to a new line because of overflow. This function would go on and do some work but I won't get into that here.

Any idea on how I can do this?

Thanks