add line number to textarea or code or any dom element
HTML JavaScript
Latest commit 8392df1 Aug 4, 2015 Hadi updated readme
Permalink
Failed to load latest commit information.
bower.json init Aug 4, 2015
index.html init Aug 4, 2015
jquery.lineline.js init Aug 4, 2015
readme.md updated readme Aug 4, 2015

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'