This jQuery plugin will take any normal text area and give it line numbers. See the example for more infromation
Simple call the linenumbers function an a text area element like so: $('textarea').linenumbers(); Options can be passed via a object.
- col_width (Default: 25px) The width of the numbers column. Default should fit 4 columns on a textarea with no styles applied. This will need to be changed to fix the number of columns you choose and the styles applied to the textarea.
- start (Default: 1) The starting line number
- digits (Default: 4) The number of digits the line numbers should max out at, this is used for lead space calculating and does not include the colon.
- 1.0.0 โข May 27th 2012 - Initial release.