views:

76

answers:

2

Hello

Well here's a tricky one for you. Is there any good and logical ways to highlight code inside textarea via jQuery? If there is, please share.

Martti Laine

+1  A: 

No, there isn't. You can apply styles to the entire textarea, but not part of the text in it.

You would need something that works as a replacement for the textarea, here is a list of some.

Guffa
A: 

If by code, you mean SQL, PHP etc., you should take a look at Codepress. It's a real-time, syntax highlighting editor, written in Javascript.

elo80ka