[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
www.dhtmlgoodies.com • View topic - Textarea with numbered lines
Advertisement

Textarea with numbered lines

Moderator: Calcifer

Textarea with numbered lines

Postby ANMMark » Tue Jul 04, 2006 10:26 pm

ANMMark
 
Posts: 8
Joined: Fri Mar 24, 2006 8:30 am

Postby ANMMark » Fri Jul 21, 2006 5:47 pm

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...

Image
ANMMark
 
Posts: 8
Joined: Fri Mar 24, 2006 8:30 am

Postby ANMMark » Fri Jul 21, 2006 6:13 pm

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.
ANMMark
 
Posts: 8
Joined: Fri Mar 24, 2006 8:30 am

Postby Batalf » Fri Jul 21, 2006 8:16 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby ANMMark » Sat Jul 22, 2006 6:10 am

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.
ANMMark
 
Posts: 8
Joined: Fri Mar 24, 2006 8:30 am

TextArea with Line Numbers

Postby straightPete » Sat Jul 29, 2006 10:27 pm

straightPete
 
Posts: 3
Joined: Sat Jul 29, 2006 9:27 pm

TextArea with Line Numbers

Postby straightPete » Sun Jul 30, 2006 11:29 am

straightPete
 
Posts: 3
Joined: Sat Jul 29, 2006 9:27 pm

Postby Batalf » Sun Jul 30, 2006 11:56 am

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby straightPete » Thu Aug 03, 2006 10:43 am

straightPete
 
Posts: 3
Joined: Sat Jul 29, 2006 9:27 pm

Postby angrycamel » Fri Aug 04, 2006 4:07 pm

angrycamel
 
Posts: 1
Joined: Fri Aug 04, 2006 4:04 pm
Location: projectmimesis.com

Postby ejunker » Thu Sep 14, 2006 8:01 pm

ejunker
 
Posts: 3
Joined: Thu Sep 14, 2006 8:00 pm

Postby Batalf » Thu Sep 14, 2006 8:25 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby ejunker » Thu Sep 14, 2006 8:33 pm

ejunker
 
Posts: 3
Joined: Thu Sep 14, 2006 8:00 pm

Postby ejunker » Wed Sep 27, 2006 10:35 pm

Thought some of you might find this example useful. They use a background image instead of a textarea to create line numbers.

ejunker
 
Posts: 3
Joined: Thu Sep 14, 2006 8:00 pm

Postby mezich » Fri Aug 10, 2007 8:41 pm

mezich
 
Posts: 1
Joined: Fri Aug 10, 2007 8:39 pm

Next

Return to Request/Suggest a script by posting in this thread

Who is online

Users browsing this forum: No registered users and 2 guests

cron