If you want to rely on JavaScript you could also put the line numbers in
another dropdown box and when you scroll one box they both scroll at the
same rate. If you add a new line you could automatically add another
line to the line-number box. I'm sure you could do some tweaking to hide
the scrollbar of the line number box by laying the code box on the next
z-index layer above the line numbers.

Joshua Miller
Head Programmer / IT Manager
Garrison Enterprises Inc.
www.garrisonenterprises.net
[EMAIL PROTECTED]
(704) 569-9044 ext. 254
 
************************************************************************
*************
Any views expressed in this message are those of the individual sender,
except where the sender states them to be the views of 
Garrison Enterprises Inc.
 
This e-mail is intended only for the individual or entity to which it is
addressed and contains information that is private and confidential. If
you are not the intended recipient you are hereby notified that any
dissemination, distribution or copying is strictly prohibited. If you 
have received this e-mail in error please delete it immediately and
advise us by return e-mail to [EMAIL PROTECTED]
************************************************************************
*************


-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2003 1:16 AM
To: CF-Talk
Subject: RE: textarea line numbering


Here, very roughly mocked up, is the point. 

http://www.electricsheep.co.nz/lab/css.html

-----Original Message-----
From: Buckland, Ramon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 20 March 2003 5:26 p.m.
To: CF-Talk
Subject: RE: textarea line numbering

Few bugs in that 
  + line numbers > 100
  + holding down enter key releasing doesn't update the numbers

oh .. and it was only tested in IE, i'll check it later with 
others (NS, Moz, Galeon and Opera) In theory it is DOM compliant. so
should be fine.

but hey, you get the drift.

> Wow! That's awesome! I can't believe it works so well! (Wait
> until I think
> of something a bit harder...)

go for it!, it keeps the mind off of other happenings
in the world :-)

> 
> -----Original Message-----
> From: Buckland, Ramon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 20 March 2003 5:09 p.m.
> To: CF-Talk
> Subject: RE: textarea line numbering
> 
> Ooh I love a challenge, :-)
> 
> Here you go matthew
> 
>    line numbers next to a scrollable <textarea>
>    implemented client side using Javascript, onscroll, onkeyup and
>    some mirrors.
> 
> http://www.thebuckland.com/staging/line_numbers_for_textarea.html
> 
> 
> > -----Original Message-----
> > From: Matthew Walker [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, 20 March 2003 2:21 PM
> > To: CF-Talk
> > Subject: textarea line numbering
> > 
> > 
> > I've been exploring the possibility of editing stylesheets
> > online and I'm
> > looking for a way to provide line numbering in a textarea 
> > window. Anybody
> > seen anything like this?
> > 
> > The best I can come up with is (instead of textarea) using a
> > series of text
> > fields one on top of another each with a number next to them.
> > 
> > 
> > 
> 
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to