Just a thought ...

You could treat the contents as a list delimited by a line break and
prepend each list item with a sequential number.

<textarea name="textarea">
<cfset i=1>
<cfloop list="#content#" index="ListItem"
delimiters="#chr(10)##chr(13)#">
#numberformat(i,"00")# #ListItem##chr(10)##chr(13)#
<cfset i=i+1>
</cfloop>
</textarea>

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: Wednesday, March 19, 2003 10: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
Get the mailserver that powers this list at http://www.coolfusion.com

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

Reply via email to