0.0.9 • Published 9 years ago

jquery-colorfy v0.0.9

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

jquery.colorfy

jQuery plugin that colorfies your textarea.

=> Online demo and homepage

It's available on npm and bower.

Screencast

Usage

$("#your_text_area").colorfy("yourDescriptor");

The descriptor can be registered like this

$.fn.colorfy.yourDescriptor = {
  "keyword": /function|typeof|instanceof|var/,
  "operator": /[+-*/%]/,
  "string": /(["']).*+\1/m
}

Left hand side, aka key, is css class name. Right hand side, aka value, is regexp to match.

Known Bugs

  • It only works well in Safari and Chrome.
  • In Firefox when user press enter/return, cursor jumps incorrectly.
  • Due to system input method, Chinese and Japanese are not supported.
0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago