<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ruben Sargsyan &#187; highlight</title>
	<atom:link href="http://rubensargsyan.com/tag/highlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubensargsyan.com</link>
	<description>Personal Website</description>
	<lastBuildDate>Fri, 27 Aug 2010 07:08:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress plugin &#8220;Explanatory Dictionary&#8221; new 1.5 version</title>
		<link>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-5-version/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-5-version/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 19:10:08 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[explanatory dictionary]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[new version]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=394</guid>
		<description><![CDATA[The new version of WordPress plugin &#8220;Explanatory Dictionary&#8221; 1.5. is created. The following updates have been done in this version: 1. The bug which shows an error when you use several characters in explanatory dictionary is fixed. Plugin Homepage]]></description>
			<content:encoded><![CDATA[<p>The new version of WordPress plugin &#8220;Explanatory Dictionary&#8221; 1.5. is created. The following updates have been done in this version:<span id="more-394"></span></p>
<p>1. The bug which shows an error when you use several characters in explanatory dictionary is fixed.</p>
<p><a href="http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/">Plugin Homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-5-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugin &#8220;Explanatory Dictionary&#8221; new 1.4 version</title>
		<link>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-4-version/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-4-version/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 18:29:01 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[explanatory dictionary]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[new version]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=338</guid>
		<description><![CDATA[The new version of WordPress plugin &#8220;Explanatory Dictionary&#8221; 1.4. is created. The following updates have been done in this version: 1. You can add words (words expressions, sentences) which are already existed in the words (words expressions, sentences) you added before. 2. You can edit the explanations of the dictionary. 3. The problem with posts [...]]]></description>
			<content:encoded><![CDATA[<p>The new version of WordPress plugin &#8220;Explanatory Dictionary&#8221; 1.4. is created. The following updates have been done in this version:<span id="more-338"></span></p>
<p>1. You can add words (words expressions, sentences) which are already existed in the words (words expressions, sentences) you added before.<br />
2. You can edit the explanations of the dictionary.<br />
3. The problem with posts images captions is solved.</p>
<p><a href="http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/">Plugin Homepage</a></p>
<p><i>Special thanks to Nick Asenov for developing this version of the plugin.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-4-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugin “Explanatory Dictionary” new 1.3 version</title>
		<link>http://rubensargsyan.com/wordpress-plugin-%e2%80%9cexplanatory-dictionary%e2%80%9d-new-1-3-version/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-%e2%80%9cexplanatory-dictionary%e2%80%9d-new-1-3-version/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 18:44:23 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[explanatory dictionary]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[new version]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=306</guid>
		<description><![CDATA[The new version of WordPress plugin “Explanatory Dictionary” 1.3. is created. The following updates have been done in this version: 1. Added new options &#8211; &#8220;Set Explaining Word (Words Expression, Sentence) Style&#8221;, &#8220;Exclude&#8221;, &#8220;Limit&#8221;. Plugin Homepage]]></description>
			<content:encoded><![CDATA[<p>The new version of WordPress plugin “Explanatory Dictionary” 1.3. is created. The following updates have been done in this version:<span id="more-306"></span></p>
<p>1. Added new options &#8211; &#8220;Set Explaining Word (Words Expression, Sentence) Style&#8221;, &#8220;Exclude&#8221;, &#8220;Limit&#8221;.</p>
<p><a href="http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/">Plugin Homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-%e2%80%9cexplanatory-dictionary%e2%80%9d-new-1-3-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugin &#8220;Explanatory Dictionary&#8221; new 1.2 version</title>
		<link>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-2-version/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-2-version/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 20:14:55 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[explanatory dictionary]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[new version]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=267</guid>
		<description><![CDATA[The new version of WordPress plugin &#8220;Explanatory Dictionary&#8221; 1.2. is created. The problem that the tooltip appears not near the word in the several themes is already solved in this version. Plugin Homepage]]></description>
			<content:encoded><![CDATA[<p>The new version of WordPress plugin &#8220;Explanatory Dictionary&#8221; 1.2. is created.<span id="more-267"></span> The problem that the tooltip appears not near the word in the several themes is already solved in this version.</p>
<p><a href="http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/">Plugin Homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-2-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugin &#8220;Explanatory Dictionary&#8221; new 1.1 version</title>
		<link>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-1-version/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-1-version/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 14:20:30 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[explanatory dictionary]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=259</guid>
		<description><![CDATA[The new version of WordPress plugin &#8220;Explanatory Dictionary&#8221; 1.1. is created. The following updates have been done in this version: 1. Added new option &#8220;unicode&#8221;. 2. Now you can show all words (words expressions, sentences) with their explanations. 3. Fixed some bugs Plugin Homepage]]></description>
			<content:encoded><![CDATA[<p>The new version of WordPress plugin &#8220;Explanatory Dictionary&#8221; 1.1. is created. The following updates have been done in this version:<span id="more-259"></span></p>
<p>1. Added new option &#8220;unicode&#8221;.<br />
2. Now you can show all words (words expressions, sentences) with their explanations.<br />
3. Fixed some bugs</p>
<p><a href="http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/">Plugin Homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary-new-1-1-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugin &#8220;Explanatory Dictionary&#8221;</title>
		<link>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/</link>
		<comments>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 11:51:43 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[explanatory dictionary]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=133</guid>
		<description><![CDATA[This plugin is used when there are words, words expressions or sentences to be explained in the posts or pages of your WordPress blog. This plugin will help to read the explanations of the words (words expressions, sentences) you need via tooltips. In administration interface you can do the following: 1. set the explanation tooltip [...]]]></description>
			<content:encoded><![CDATA[<p>This plugin is used when there are words, words expressions or sentences to be explained in the posts or pages of your WordPress blog. This plugin will help to read the explanations of the words (words expressions, sentences) you need via tooltips.<span id="more-133"></span></p>
<p><img class="aligncenter size-full wp-image-143" title="screenshot-1" src="http://rubensargsyan.com/wp-content/uploads/2009/11/screenshot-11.png" alt="screenshot-1" width="500" height="367" /></p>
<p>In administration interface you can do the following:<br />
1. set the explanation tooltip width<br />
2. select the explanation tooltip text align<br />
3. set the explanation tooltip text font size<br />
4. set the explanation tooltip text color<br />
5. set the explanation tooltip border size<br />
6. set the explanation tooltip border color<br />
7. set the explanation tooltip background color<br />
8. set the explanation tooltip padding<br />
9. set the explanation tooltip border radius<br />
10. set the explaining word (words expression, sentence) color</p>
<p><img class="aligncenter size-full wp-image-144" title="screenshot-2" src="http://rubensargsyan.com/wp-content/uploads/2009/11/screenshot-21.png" alt="screenshot-2" width="500" height="318" /></p>
<h2><img class="aligncenter size-full wp-image-145" title="screenshot-3" src="http://rubensargsyan.com/wp-content/uploads/2009/11/screenshot-3.png" alt="screenshot-3" width="500" height="271" /></h2>
<h2>Download plugin <a href="http://rubensargsyan.com/downloads/explanatory-dictionary.zip">from rubensargsyan.com</a> or <a href="http://downloads.wordpress.org/plugin/explanatory-dictionary.zip">from wordpress.org</a>.</h2>
<div style="float: left">If you find this plugin useful to you, please consider making a small donation to help contribute to further development. Thanks for your kind support!</div>
<form style="padding: 0px, margin: 0px" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="roobensargsyan@gmail.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Ruben Sargsyan">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/wordpress-plugin-explanatory-dictionary/feed/</wfw:commentRss>
		<slash:comments>103</slash:comments>
		</item>
		<item>
		<title>Highlight words in a text</title>
		<link>http://rubensargsyan.com/highlight-words-in-a-text/</link>
		<comments>http://rubensargsyan.com/highlight-words-in-a-text/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 11:11:49 +0000</pubDate>
		<dc:creator>Ruben Sargsyan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[highlight]]></category>

		<guid isPermaLink="false">http://rubensargsyan.com/?p=98</guid>
		<description><![CDATA[This function is used to search and highlight words from the text. function highlight_words&#40;$text,$word&#41;&#123; $text = preg_replace&#40;'/\b'.$word.'\b/i', '&#60;span class=&#34;highlight&#34;&#62;$0&#60;/span&#62;', $text&#41;; return $text; &#125; Note to that if the searched word is in the structure of the other wordform (for example the word &#8220;stand&#8221; is in the structure of the word &#8220;understand&#8221;), so the word will [...]]]></description>
			<content:encoded><![CDATA[<p>This function is used to search and highlight words from the text.<span id="more-98"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> highlight_words<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #339933;">,</span><span style="color: #000088;">$word</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/\b'</span><span style="color: #339933;">.</span><span style="color: #000088;">$word</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\b/i'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;span class=&quot;highlight&quot;&gt;$0&lt;/span&gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">return</span> <span style="color: #000088;">$text</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Note to that if the searched word is in the structure of the other wordform (for example the word &#8220;stand&#8221; is in the structure of the word &#8220;understand&#8221;), so the word will not be highlighted. It will be highlighted when  after  or  before  the  word  is  not  appeared alphabetic or digital character  or underline (_) character. The function also ignores case sensitivity of the word. If the searched word is &#8220;light&#8221;, the words  &#8220;highlight&#8221;,  &#8220;light_faced&#8221;,  &#8220;lighten&#8221;, &#8220;light9&#8243; e.t.c. will not be highlighted as well.</p>
<h2>Example:</h2>
<p>Searching the word &#8220;book&#8221; in the text &#8220;Our book-keeper was bought an interesting book from bookshop. Book name is My big book.&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> highlight_words<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #339933;">,</span><span style="color: #000088;">$word</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/\b'</span><span style="color: #339933;">.</span><span style="color: #000088;">$word</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\b/i'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;span class=&quot;highlight&quot;&gt;$0&lt;/span&gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #b1b100;">return</span> <span style="color: #000088;">$text</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;style&gt;
.highlight{
   background-color: #214579;
   color: #ffffff;
}
&lt;/style&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$word</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;book&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Our book-keeper was bought an interesting book from bookshop. Book name is My big book.&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span>highlight_words<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #339933;">,</span><span style="color: #000088;">$word</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The above example will output:</p>
<p>Our <span style="background-color: #214579; color: #ffffff;">book</span>-keeper was bought an interesting <span style="background-color: #214579; color: #ffffff;">book</span> from bookshop. <span style="background-color: #214579; color: #ffffff;">Book</span> name is My big <span style="background-color: #214579; color: #ffffff;">book</span>.</p>
<p>You   see   that   the  word  &#8220;book&#8221;  of  the  wordform  &#8220;bookshop&#8221;  was not highlighted, and the words &#8220;book-keeper&#8221;, &#8220;book&#8221;, &#8220;Book&#8221; and &#8220;book&#8221; which is followed by  the punctuation mark &#8220;.&#8221; was highlighted.</p>
<p>Set your style to the highlighted words in .highlight{ &#8230; }.</p>
<p>The demo you can see <a href="http://rubensargsyan.com/demo/highlight_words" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubensargsyan.com/highlight-words-in-a-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
