Skip to content
SetNumber jQuery Plugin - set number for textarea
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
example
img
libs
src
test
.gitignore
.jshintrc
CONTRIBUTING.md
Gruntfile.js
LICENSE
README.md
package.json
set-number.jquery.json

README.md

SetNumber jQuery Plugin

Build Status

:set number for textarea

  • Scroll Event support
  • Active line highlight

set-number

Requirements

Usage

$("#id").setNumber({
  activeLine:   1
, activeClass:  "active"
, wrapperClass: "set-number"
});
// with jquery-autosize
$("#id").autosize({
  callback: function(textarea) {
    $(textarea).scroll();
  }
});

see also example/index.html

Development

% npm install grunt

# uglify
% grunt uglify #=> dist/set-number.min.js will be generated

# stylus
% grunt stylus #=> dist/set-number.css will be generated

# test
% grunt qunit # or see `test/set-number.html` via browser

Histroy

  • 20140131 Add stylus compile task (for dist/set-number.css) and sample.html
  • 20140130 Initial Release (0.0.1)

Lincense

MIT License (see LICENSE)

You can’t perform that action at this time.