Giter Site home page Giter Site logo

Comments (8)

mistic100 avatar mistic100 commented on July 20, 2024

Try

$('textarea').highlightTextarea({ /* init object */ });
$('textarea').data('highlighter').regParam = 'im'; // or 'm' for case sensitive
$('textarea').highlightTextarea('highlight');

from jquery-highlighttextarea.

elalemanyo avatar elalemanyo commented on July 20, 2024

is possible to add some data attribute also?.... I will try what you told me and let you know.

Thanks!

from jquery-highlighttextarea.

mistic100 avatar mistic100 commented on July 20, 2024

Like what ?
The development is almost stopped, I accept pull request but won't add features myself.

from jquery-highlighttextarea.

elalemanyo avatar elalemanyo commented on July 20, 2024

something like data-test="something" on the span

from jquery-highlighttextarea.

elalemanyo avatar elalemanyo commented on July 20, 2024

and is there a way to complete destroy complete the highlighttextarea instance?
Thanks!

from jquery-highlighttextarea.

mistic100 avatar mistic100 commented on July 20, 2024

No you can't add attributes out of the bow, you will have to modify the plugin


It conforms to what almost every jQuery plugin do

$('textarea').highlightTextarea('destroy');

are we done with the original issue ? It's not good practice to abord many subjects in one thread

from jquery-highlighttextarea.

elalemanyo avatar elalemanyo commented on July 20, 2024

ok, I already try this one. But I add something to make it disappear at all:

$('textarea').highlightTextarea('destroy');
$('textarea').removeAttr('style').removeClass('highlight');

Did you have some experience with scrollbars? Is possible to make your plugin work with some scroll plugin?

I am trying to get it work with this: https://github.com/malihu/malihu-custom-scrollbar-plugin

Thanks for all your help!

from jquery-highlighttextarea.

mistic100 avatar mistic100 commented on July 20, 2024

I don't understand what you are talking about... yes my plugin support the native scrollbar added to textarea when needed. I have no idea about incompatibilities, and as I said "The development is almost stopped"

Now PLEASE open a new issue if you have other question. The issue is "Highlight first matched word" and nothing more!

from jquery-highlighttextarea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.