Skip to content

cotton/jQueryLinenNumbersPlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQueryLineNumbersPlugin

This jQuery plugin will take any normal text area and give it line numbers. See the example for more infromation

Usage

Simple call the linenumbers function an a text area element like so: $('textarea').linenumbers(); Options can be passed via a object.

Plugin Options

  1. 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.
  2. start (Default: 1) The starting line number
  3. 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.

Version History

  • 1.0.0 • May 27th 2012 - Initial release.

About

a jQuery plugin to give any textarea line numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published