<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionHighlight jQuery Plugin</title><link>https://community.telligent.com/community/13/w/api-documentation/75770/evolutionhighlight-jquery-plugin</link><description>&lt;p&gt;&lt;span&gt;Developing on Verint Community? Use the API documentation as a reference for all supported interactions with Verint Community.&lt;/span&gt;&lt;/p&gt;</description><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>evolutionHighlight jQuery Plugin</title><link>https://community.telligent.com/community/13/w/api-documentation/75770/evolutionhighlight-jquery-plugin</link><pubDate>Fri, 08 Mar 2024 17:51:34 GMT</pubDate><guid isPermaLink="false">b0b621bd-e1ca-4133-bf51-b77e9598aa44</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/13/w/api-documentation/75770/evolutionhighlight-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 03/08/2024 17:51:34&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;jQuery.fn.evolutionHighlight&lt;/h3&gt;
&lt;p&gt;This plugin decorates &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; elements to support highlighting of ranges with CSS class names. Internally, a mirror of the &lt;code&gt;textarea&lt;/code&gt; is created behind it, and highlighted ranges are rendered as &lt;code&gt;span&lt;/code&gt; elements with CSS classes applied. This is used by the [[evolutionComposer jQuery Plugin|evolutionComposer]] plugin to support highlighting.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;p&gt;Highlights two ranges in a &lt;code&gt;textarea&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;textarea.myTextArea&amp;#39;).evolutionHighlight({
    ranges: [
        { start: 5, stop: 10, className: 'myHighlightStyle' },
        { start: 13, stop: 34, className: 'myHighlightStyle' }
    ]
});
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ranges&lt;/code&gt;: array of ranges to highlight. Each range requires
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;start&lt;/code&gt;: Start Index&lt;/li&gt;
&lt;li&gt;&lt;code&gt;stop&lt;/code&gt;: Stop Index&lt;/li&gt;
&lt;li&gt;&lt;code&gt;className&lt;/code&gt;: CSS class name to apply to a wrapper &lt;code&gt;span&lt;/code&gt;. The class should ideally only define a background color, and not any padding or margin.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Methods&lt;/h3&gt;
&lt;h4&gt;clear&lt;/h4&gt;
&lt;p&gt;Clears highlights.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;textarea.myTextArea&amp;#39;).evolutionHighlight(&amp;#39;clear&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;resize&lt;/h4&gt;
&lt;p&gt;Safely resizes a &lt;code&gt;textarea&lt;/code&gt; already decorated with &lt;code&gt;evolutionHighlight&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;textarea.myTextArea&amp;#39;).evolutionHighlight(&amp;#39;resize&amp;#39;, width, height);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;css&lt;/h4&gt;
&lt;p&gt;Safely applies CSS to a &lt;code&gt;textarea&lt;/code&gt; already decorated with &lt;code&gt;evolutionHighlight&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;textarea.myTextArea&amp;#39;).evolutionHighlight(&amp;#39;css&amp;#39;, {
    border: &amp;#39;2px solid red&amp;#39;,
    fontSize: &amp;#39;15px&amp;#39;
});
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>