Alex Rivera | Logout

Way to highlight code in textarea with jquery?

Asked 2010-07-21T16:43:55.663
12

Is there any good and logical ways to highlight code inside textarea via jQuery? If there is, please share.

Edit
Report

1 Answer

22

You could use CodeMirror http://codemirror.net/

...a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.

A rich programming API and a CSS theming system are available for customizing CodeMirror to fit your application, and extending it with new functionality...

answered 2011-04-25T15:08:28.690

Your Answer