textarea with line numbers

0
0

Hi,

I think that it will be nice if textArea will support line numbers.

For now, the best solution that I found is this css code:

textarea{
background: url(http://i.imgur.com/2cOaJ.png);
background-attachment: local;
background-repeat: no-repeat;
padding-left: 35px;
padding-top: 10px;
border-color:#ccc;
}

 

source: https://jsfiddle.net/vaakash/5TF5h/

the only thing that I don’t like that I had to put the ! important keyword on each of the properties in order to get it to work.

 

Thanks

Orel.

 

Attachment
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.