{"_id":"highlight-within-textarea","_rev":"12-fe5ab72c604bab4be0a66d101048ddf8","name":"highlight-within-textarea","description":"jQuery plugin for highlighting bits of text within a textarea.","dist-tags":{"latest":"2.0.5"},"versions":{"1.0.2":{"name":"highlight-within-textarea","version":"1.0.2","description":"jQuery plugin for highlighting bits of text within a textarea.","main":"jquery.highlight-within-textarea.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/lonekorean/highlight-within-textarea.git"},"keywords":["jquery-plugin","ecosystem:jquery","highlight","textarea"],"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"http://codersblock.com/"},"license":"MIT","bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"homepage":"https://github.com/lonekorean/highlight-within-textarea","gitHead":"9ea1782851928c53efd90192a551c8ae94d8d3bd","_id":"highlight-within-textarea@1.0.2","_shasum":"b3d4d07d2a7d6461214725f91b30adb09b04a5f8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"lonekorean","email":"will@codersblock.com"},"maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"dist":{"shasum":"b3d4d07d2a7d6461214725f91b30adb09b04a5f8","tarball":"https://registry.npmjs.org/highlight-within-textarea/-/highlight-within-textarea-1.0.2.tgz","integrity":"sha512-lVxhLuzceW2lKH+NMBRrbNXIFk7uu0/QVdRBFGDgOsGZCW9sdnou/x7Gdsa4D3isBF3gfg44vbEaDxh4ajJOWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNZsu2daPP6NwMMXvM0QfbeIHwYlixBdqyR+sZ04kCLAiEAvZGOIVhKiB7MNVXodjGkQBg/I57AjhO6cjxsMCLCG1g="}]},"directories":{}},"1.0.3":{"name":"highlight-within-textarea","version":"1.0.3","description":"jQuery plugin for highlighting bits of text within a textarea.","main":"jquery.highlight-within-textarea.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/lonekorean/highlight-within-textarea.git"},"keywords":["jquery-plugin","ecosystem:jquery","highlight","textarea"],"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"http://codersblock.com/"},"license":"MIT","bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"homepage":"https://github.com/lonekorean/highlight-within-textarea","gitHead":"e947228b8879ed82ba55fd91fd3efb404d7d7709","_id":"highlight-within-textarea@1.0.3","_shasum":"6955645b0380237c33c4e98208863f374589999a","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.2.0","_npmUser":{"name":"lonekorean","email":"will@codersblock.com"},"maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"dist":{"shasum":"6955645b0380237c33c4e98208863f374589999a","tarball":"https://registry.npmjs.org/highlight-within-textarea/-/highlight-within-textarea-1.0.3.tgz","integrity":"sha512-dS5qSrlx9X7HW8FN8PHIcr8NLnjGmAm8BWpFedBFZp0jX1dS0VybU2NOo4qdwdoazYNxYXGAhU+ws21ahe7Rrg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDErj+S5sSm5OoIyshF0fM+lFKo9mcy2NVQfm3Mac6N5QIgZf/eeJENimdr7quUH8f49vMe1Ap5AqqmMDZUi5I+XeU="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/highlight-within-textarea-1.0.3.tgz_1467849426526_0.3341676809359342"},"directories":{}},"1.0.5":{"name":"highlight-within-textarea","version":"1.0.5","description":"jQuery plugin for highlighting bits of text within a textarea.","main":"jquery.highlight-within-textarea.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/lonekorean/highlight-within-textarea.git"},"keywords":["jquery-plugin","ecosystem:jquery","highlight","textarea"],"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"http://codersblock.com/"},"license":"MIT","bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"homepage":"https://github.com/lonekorean/highlight-within-textarea","gitHead":"2080a6dcb07007afd8bed7d2b8e8f6f998724dbe","_id":"highlight-within-textarea@1.0.5","_shasum":"da89ce3a5403c189b098d399be42c751e098ec17","_from":".","_npmVersion":"3.10.9","_nodeVersion":"5.2.0","_npmUser":{"name":"lonekorean","email":"will@codersblock.com"},"dist":{"shasum":"da89ce3a5403c189b098d399be42c751e098ec17","tarball":"https://registry.npmjs.org/highlight-within-textarea/-/highlight-within-textarea-1.0.5.tgz","integrity":"sha512-Mf/rW8w2vwsFcaCb2IcuKzkz5dAaWvwvD6duXGAekWT8dO1q3G3hocldCSx11JQRjpuusXAF2c9iWRrMubBWjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHewxwMfxB5kLgmWEMgrLd1b+5UJRkzNSK0JFXqs/WPoAiEAi2pr0pjXo98cgVFCqd+Kx6MCr1R9GR0wTHJXNKep/YA="}]},"maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/highlight-within-textarea-1.0.5.tgz_1493476345218_0.9114365160930902"},"directories":{}},"2.0.0":{"name":"highlight-within-textarea","version":"2.0.0","description":"jQuery plugin for highlighting bits of text within a textarea.","main":"jquery.highlight-within-textarea.js","repository":{"type":"git","url":"git+https://github.com/lonekorean/highlight-within-textarea.git"},"keywords":["ecosystem:jquery","jquery-plugin","highlight","textarea","search"],"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"http://codersblock.com"},"license":"MIT","gitHead":"4c631beefab44a16417314d00d798e8836da4b0b","bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"homepage":"https://github.com/lonekorean/highlight-within-textarea#readme","_id":"highlight-within-textarea@2.0.0","scripts":{},"_shasum":"16e9744298e336077c70f6266de1de8f0687f17f","_from":".","_npmVersion":"3.10.9","_nodeVersion":"5.2.0","_npmUser":{"name":"lonekorean","email":"will@codersblock.com"},"dist":{"shasum":"16e9744298e336077c70f6266de1de8f0687f17f","tarball":"https://registry.npmjs.org/highlight-within-textarea/-/highlight-within-textarea-2.0.0.tgz","integrity":"sha512-xl+laXg1kGcLgI00yZSmPxPZwMhbWMf7J+KHel8RfnlCqvVPRDRGobupNS7eLn93NF4tKMPOhVzogX3FsYNJhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBnb8jM8t7NozDRqUtCzLeS7//+8SwQ9y1qCREO8YnwgAiBslkXOTMRUU5i00S7wf0Eti+n2BGWkCs0Oa/Z6UwJXsw=="}]},"maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-within-textarea-2.0.0.tgz_1496074334950_0.34385488741099834"},"directories":{}},"2.0.2":{"name":"highlight-within-textarea","version":"2.0.2","description":"jQuery plugin for highlighting bits of text within a textarea.","main":"jquery.highlight-within-textarea.js","repository":{"type":"git","url":"git+https://github.com/lonekorean/highlight-within-textarea.git"},"keywords":["ecosystem:jquery","jquery-plugin","highlight","textarea","search"],"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"http://codersblock.com"},"license":"MIT","gitHead":"e441a925aa600306f253db44169ef71c8c2f555f","bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"homepage":"https://github.com/lonekorean/highlight-within-textarea#readme","_id":"highlight-within-textarea@2.0.2","scripts":{},"_shasum":"cc3d2fb057eaef1892292aa433a796fa4bd41dcb","_from":".","_npmVersion":"3.10.9","_nodeVersion":"5.2.0","_npmUser":{"name":"lonekorean","email":"will@codersblock.com"},"dist":{"shasum":"cc3d2fb057eaef1892292aa433a796fa4bd41dcb","tarball":"https://registry.npmjs.org/highlight-within-textarea/-/highlight-within-textarea-2.0.2.tgz","integrity":"sha512-H1q98X5AZiW89L9Rx2bQ/qZl7xzyCiWTOMed2sCt/NsJFBCPWno64vb21uRem4z30tOa3EaoDgRY8lxtQEB+lQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSdfQSvuJHSzBCiQcq3roWA+PcKvas6cknLhECGknWSgIhAOvHnB1lW3fQxUZ1wtJXrIMkn90Q+pcmi0MuGOV63Y4X"}]},"maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-within-textarea-2.0.2.tgz_1496077243778_0.38862299802713096"},"directories":{}},"2.0.3":{"name":"highlight-within-textarea","version":"2.0.3","description":"jQuery plugin for highlighting bits of text within a textarea.","main":"jquery.highlight-within-textarea.js","repository":{"type":"git","url":"git+https://github.com/lonekorean/highlight-within-textarea.git"},"keywords":["ecosystem:jquery","jquery-plugin","highlight","textarea","search"],"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"http://codersblock.com"},"license":"MIT","gitHead":"088fd02c892d19273973db2d8f3ba8c56465103e","bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"homepage":"https://github.com/lonekorean/highlight-within-textarea#readme","_id":"highlight-within-textarea@2.0.3","scripts":{},"_shasum":"d7aef3351449f2789d5bf977395affbb34a2dbb8","_from":".","_npmVersion":"3.5.2","_nodeVersion":"6.11.1","_npmUser":{"name":"lonekorean","email":"will@codersblock.com"},"dist":{"shasum":"d7aef3351449f2789d5bf977395affbb34a2dbb8","tarball":"https://registry.npmjs.org/highlight-within-textarea/-/highlight-within-textarea-2.0.3.tgz","integrity":"sha512-oxA+lUEY68WP89cDM5SGXGMmKk7E5Ceb/E1IxK+ThZAwvRci7cX1/Co8NsqwEaKQ1IDqry5S/YH+7ahdjqxpiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHED8zrnO0VwtOR1yHHimiJAP0OxkZwMyxxUJj9hUFxQIgXctSyE6kq/22pE0ocLTUkcTv0ULutGq5tmLpVvFZDMM="}]},"maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-within-textarea-2.0.3.tgz_1506173639539_0.5350964656099677"},"directories":{}},"2.0.4":{"name":"highlight-within-textarea","version":"2.0.4","description":"jQuery plugin for highlighting bits of text within a textarea.","main":"jquery.highlight-within-textarea.js","repository":{"type":"git","url":"git+https://github.com/lonekorean/highlight-within-textarea.git"},"keywords":["ecosystem:jquery","jquery-plugin","highlight","textarea","search"],"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"http://codersblock.com"},"license":"MIT","gitHead":"6df46cb5ffe39b0ee3482a0c3ef4263f219464fb","bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"homepage":"https://github.com/lonekorean/highlight-within-textarea#readme","_id":"highlight-within-textarea@2.0.4","scripts":{},"_shasum":"9c43af4d619997f170655649f38a8270e453a6ce","_from":".","_npmVersion":"3.5.2","_nodeVersion":"6.11.1","_npmUser":{"name":"lonekorean","email":"will@codersblock.com"},"dist":{"shasum":"9c43af4d619997f170655649f38a8270e453a6ce","tarball":"https://registry.npmjs.org/highlight-within-textarea/-/highlight-within-textarea-2.0.4.tgz","integrity":"sha512-4Z9NP6kIQwQi2StWYyWb0I2s3YgflkWITTDhol9/M2jsSLjwH4JWFT2rKKHpIWCyzM5606QvvlJ4O+8MzLHlAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAVMnIKUTfMHGzSueMbwRA69UGUtl6q0K65P5ijSaE4eAiATwkgp0JmjHe3Xfohkyblj0DYX/SqGaUuIrP0no6QfoA=="}]},"maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-within-textarea-2.0.4.tgz_1506174105954_0.8115987102501094"},"directories":{}},"2.0.5":{"name":"highlight-within-textarea","version":"2.0.5","description":"jQuery plugin for highlighting bits of text within a textarea.","main":"jquery.highlight-within-textarea.js","repository":{"type":"git","url":"git+https://github.com/lonekorean/highlight-within-textarea.git"},"keywords":["ecosystem:jquery","jquery-plugin","highlight","textarea","search"],"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"https://codersblock.com"},"license":"MIT","gitHead":"8e16e3acea7af5733c6a3b671194199327e0a8b2","bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"homepage":"https://github.com/lonekorean/highlight-within-textarea#readme","_id":"highlight-within-textarea@2.0.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"lonekorean","email":"will@codersblock.com"},"dist":{"integrity":"sha512-QRoVHbnYoPB/xQVX6kS6+NCfS4QDl6jp9JIRppUQOQtwUvBI9+QxDG06WZ/socOwds1zmgU0oO9dAvmBZOgS/g==","shasum":"77aa0efdf9b842c581cc2726cf2a458bbaea0550","tarball":"https://registry.npmjs.org/highlight-within-textarea/-/highlight-within-textarea-2.0.5.tgz","fileCount":6,"unpackedSize":21804,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVKmMheoN5D+A74136MtnpDs9KXYNthETTI+XHoE/IHwIhAJdSwk8OWywLpFrOvWwu7zzmXZ5vi6CSpJmNRvtuNi5a"}]},"maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-within-textarea_2.0.5_1520697546491_0.9625095141429791"},"_hasShrinkwrap":false}},"readme":"# highlight-within-textarea\r\n\r\njQuery plugin for highlighting bits of text within a textarea.\r\n\r\n## Introduction\r\n\r\nIt's not actually possible to style text in a textarea, because any markup within a textarea is treated as literal text. This plugin aims to fake it, allowing you to highlight pieces of text inside a textarea.\r\n\r\nA native textarea element is used and familiar behavior (auto-correct, scrolling, resizing, etc.) works as expected.\r\n\r\n## Usage\r\n\r\nTo start, call `highlightWithinTextarea()` on a textarea, passing in a config object.\r\n\r\n```javascript\r\n$('.my-textarea').highlightWithinTextarea({\r\n    highlight: whatever // string, regexp, array, function, or custom object\r\n});\r\n```\r\n\r\nThe `highlight` property accepts several different types of values to describe what will be highlighted. You can see the various ways to highlight things, along with example code, on **[the demo page](https://lonekorean.github.io/highlight-within-textarea/)**.\r\n\r\n## Styling\r\n\r\nFor reference, **[the demo page](https://lonekorean.github.io/highlight-within-textarea/)** has some sample styling (view source to see the CSS).\r\n\r\nThere are some guidelines for getting your styles in the right places. Here are the classes you'll want to use.\r\n\r\n### .hwt-container\r\n\r\nUse for visibility, positioning, and background.\r\n- `display`\r\n- `position`\r\n- `top`\r\n- `left`\r\n- `margin`\r\n- `background`\r\n\r\n### .hwt-content\r\n\r\nUse for sizing and text formatting.\r\n- `width`\r\n- `height`\r\n- `padding`\r\n- `border`\r\n- `color`\r\n- `font`\r\n\r\n### .hwt-content mark\r\n\r\nUse for highlighted text. Generally, stuff that doesn't change size is fine.\r\n- `background-color`\r\n- `border-radius`\r\n- `box-shadow`\r\n\r\nChanges to `color` won't be visible, since text in the textarea covers colored text in the highlights.\r\n\r\n## Updating\r\n\r\nHighlighting will automatically be updated as the user edits the contents of the textarea. But sometimes other scripts may directly change the contents of the textarea. In these cases, you can manually trigger a highlighting update.\r\n\r\n```javascript\r\n$('.my-textarea').highlightWithinTextarea('update');\r\n```\r\n\r\n## Destroying\r\n\r\nYou can remove the plugin from a textarea with this.\r\n\r\n```javascript\r\n$('.my-textarea').highlightWithinTextarea('destroy');\r\n```\r\n","maintainers":[{"name":"lonekorean","email":"will@codersblock.com"}],"time":{"modified":"2022-06-18T20:43:52.710Z","created":"2015-09-28T21:41:17.221Z","1.0.2":"2015-09-28T21:41:17.221Z","1.0.3":"2016-07-06T23:57:07.570Z","1.0.5":"2017-04-29T14:32:27.058Z","2.0.0":"2017-05-29T16:12:15.848Z","2.0.2":"2017-05-29T17:00:44.832Z","2.0.3":"2017-09-23T13:34:00.502Z","2.0.4":"2017-09-23T13:41:47.694Z","2.0.5":"2018-03-10T15:59:06.530Z"},"homepage":"https://github.com/lonekorean/highlight-within-textarea#readme","keywords":["ecosystem:jquery","jquery-plugin","highlight","textarea","search"],"repository":{"type":"git","url":"git+https://github.com/lonekorean/highlight-within-textarea.git"},"author":{"name":"Will Boyd","email":"will@codersblock.com","url":"https://codersblock.com"},"bugs":{"url":"https://github.com/lonekorean/highlight-within-textarea/issues"},"license":"MIT","readmeFilename":"README.md","users":{"syndesi":true}}