add line number to textarea or code or any dom element
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bower.json
index.html
jquery.lineline.js
readme.md

readme.md

jQuery lineLine (only 1 KB)

a lightweight jQuery plugin for add linenumber to textarea or code or nay other tag

Usage:

$('textarea').lineLine();

Demo:

http://habibhadi.com/lab/jquery-lineline/

Using bower?

bower install jquery-lineline --save-dev

Options:

startsFrom: 0
className: 'lineline'