Page 1 of 2
Textarea with numbered lines
Posted:
Tue Jul 04, 2006 10:26 pm
by ANMMark
Posted:
Fri Jul 21, 2006 5:47 pm
by ANMMark
I noticed that this thread may have been overlooked.
So, I found a screenshot to make it a little more clear what I'd like to accomplish, and quite possibly inspire dhtmlgoodies to include...
Posted:
Fri Jul 21, 2006 6:13 pm
by ANMMark
Sorry to keep posting to this, but..
I was thinking this through and thought that a possible method of doing this might be to create a vertically numbered image with the GD library and PHP, and then use that image as the background for the textarea.
Posted:
Fri Jul 21, 2006 8:16 pm
by Batalf
Posted:
Sat Jul 22, 2006 6:10 am
by ANMMark
WOW.
That is a very nice and simple method indeed.
The only thing I found that put a minor wrench in the works is that it's slightly buggy in Firefox (you must click on a line to get the left number column to adjust), and of course in Opera the number column doesn't adjust at all (I'm surprised Opera can display web pages at all lol ).
All I can say is, when I pasted the code and saved it, then displayed it in IE, I was blown away! Very good work indeed.
I just wish there was some way to get it to be more compatible with Opera and Firefox.
TextArea with Line Numbers
Posted:
Sat Jul 29, 2006 10:27 pm
by straightPete
TextArea with Line Numbers
Posted:
Sun Jul 30, 2006 11:29 am
by straightPete
Posted:
Sun Jul 30, 2006 11:56 am
by Batalf
Posted:
Thu Aug 03, 2006 10:43 am
by straightPete
Posted:
Fri Aug 04, 2006 4:07 pm
by angrycamel
Posted:
Thu Sep 14, 2006 8:01 pm
by ejunker
Posted:
Thu Sep 14, 2006 8:25 pm
by Batalf
Posted:
Thu Sep 14, 2006 8:33 pm
by ejunker
Posted:
Wed Sep 27, 2006 10:35 pm
by ejunker
Thought some of you might find this example useful. They use a background image instead of a textarea to create line numbers.
Posted:
Fri Aug 10, 2007 8:41 pm
by mezich