Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Javascript highlighting in a text area?

I have two simple textareas where in i want to highlight the javascript code being written. As soon as the user types the function in the text area , the keywords etc have to be displayed in different color or so.

I tried to hack this script . But couldnt get what i wanted.

like image 946
Rahul Avatar asked Apr 27 '12 09:04

Rahul


1 Answers

You could check Ace (demo) and CodeMirror (demo).

I suppose Textarea that can do syntax highlighting on the fly? and Online Code Editor questions will be useful for you as well.

like image 170
Li0liQ Avatar answered Sep 18 '22 16:09

Li0liQ