textoverlay
v0.3.2
Published
Simple decorator for textarea elements
Downloads
977
Readme
textoverlay
Simple decorator for textarea elements.
Demo
new Textoverlay(document.getElementById("textarea"), [
{
match: /\B@\w+/g,
css: { "background-color": "#d8dfea" }
},
{
match: /e\w{8}d/g,
css: { "background-color": "#cc9393" }
}
]);
Installation
npm install textoverlay
License
Textoverlay is released under the MIT License.