All Projects → yuku → old-textoverlay

yuku / old-textoverlay

Licence: MIT license
Simple decorator for textarea elements

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

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" }
  }
]);

Live demo

Installation

npm install textoverlay

License

Textoverlay is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].