tags:

views:

1052

answers:

3

All,

I have a textarea as in code below, how to display the line numbers on the left hand side of it.

Is there a jquery plugin?

<TEXTAREA name="program" id="program" rows="15" cols="65" ></TEXTAREA>

Thanks.....

A: 

There are lots of snippets about this:

Did you google it? If you have questions about implementing it please provide more details.

JCasso
I did google it and i found the same example as above so i wanted to see if there is any other way....
Hulk
Why are these line numbers needed? Do you need a code syntax highlighter with line numbers or a simple one?
JCasso
It is just as in http://www.avidinteractive.com/forum/showthread.php?p=2270
Hulk
A: 

CodePress is the one used in WordPress.

Mathias Bynens
+1  A: 

There is fresh JQuery Lined TextArea plugin by Alan Williamson
MIT License
jQuery 1.3+
http://alan.blog-city.com/jquerylinedtextarea.htm

techtonik