javascript - How to apply formatting to text in a textarea or an alternative to textarea that allows formatting? -
i'm making html5 game , have chatbox going right using textarea
element in html5. it'd nice if selectively color/bold/italicize lines in chat.
i looking around , i'm not sure if can done. first, can done natively using latest web technologies? if not, , simple alternatives textarea work on firefox/opera/safari/chrome , offer similar functionality textarea?
thanks!
you can create div , make content editable (here's demo http://html5demos.com/contenteditable)
<div contenteditable="true"> </div>
you can via onkeyup javascript event color code things
Comments
Post a Comment