The best way I can think of right now is to simulate it with two textareas that are glued together. The first one is narrow (width = 10-15px) and the second one is 'real'. The first will contain a number and a new line at each row. I guess it could be done to look pretty good but i'm not sure ...