css - How to change the background color of a line of user input in a textarea? -
i know how change background color of textarea, changing background color of text users type text area?
for example, in html can change background color of span of text using span tags, ie:
<span style="background-color: blue">words blue background</span>
...but text users type text field?
i need form i'm creating, users can see spaces , returns they're entering characters enter.
can done using css?
no.
but there other way around. did ever used editor in github.com? it's cool. uses javascript , <div> control style of each line of code. , translate.google.com uses same way.
Comments
Post a Comment