<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rtz.tsadra.org/index.php?action=history&amp;feed=atom&amp;title=Widget%3AHighlight</id>
	<title>Widget:Highlight - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rtz.tsadra.org/index.php?action=history&amp;feed=atom&amp;title=Widget%3AHighlight"/>
	<link rel="alternate" type="text/html" href="https://rtz.tsadra.org/index.php?title=Widget:Highlight&amp;action=history"/>
	<updated>2026-10-19T14:30:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rtz.tsadra.org/index.php?title=Widget:Highlight&amp;diff=126930&amp;oldid=prev</id>
		<title>Jeremi: (by SublimeText.Mediawiker)</title>
		<link rel="alternate" type="text/html" href="https://rtz.tsadra.org/index.php?title=Widget:Highlight&amp;diff=126930&amp;oldid=prev"/>
		<updated>2018-12-26T17:11:53Z</updated>

		<summary type="html">&lt;p&gt;(by SublimeText.Mediawiker)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:11, 26 December 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l117&quot;&gt;Line 117:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 117:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;script&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;script&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$(function() {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$(function() {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	$(&#039;#searchresults&#039;).highlight([&amp;lt;!--{$&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;term&lt;/del&gt;}--&amp;gt;]);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	$(&#039;#searchresults&#039;).highlight([&amp;lt;!--{$&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;terms&lt;/ins&gt;}--&amp;gt;]);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;});&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;});&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-rtz:diff:1.41:old-126929:rev-126930:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Jeremi</name></author>
	</entry>
	<entry>
		<id>https://rtz.tsadra.org/index.php?title=Widget:Highlight&amp;diff=126929&amp;oldid=prev</id>
		<title>Jeremi: (by SublimeText.Mediawiker)</title>
		<link rel="alternate" type="text/html" href="https://rtz.tsadra.org/index.php?title=Widget:Highlight&amp;diff=126929&amp;oldid=prev"/>
		<updated>2018-12-26T17:11:51Z</updated>

		<summary type="html">&lt;p&gt;(by SublimeText.Mediawiker)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:11, 26 December 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l117&quot;&gt;Line 117:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 117:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;script&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;script&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$(function() {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$(function() {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	$(&#039;#searchresults&#039;).highlight(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/del&gt;&amp;lt;!--{$term}--&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/del&gt;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	$(&#039;#searchresults&#039;).highlight(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;&amp;lt;!--{$term}--&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;});&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;});&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-rtz:diff:1.41:old-126927:rev-126929:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Jeremi</name></author>
	</entry>
	<entry>
		<id>https://rtz.tsadra.org/index.php?title=Widget:Highlight&amp;diff=126927&amp;oldid=prev</id>
		<title>Jeremi: (by SublimeText.Mediawiker)</title>
		<link rel="alternate" type="text/html" href="https://rtz.tsadra.org/index.php?title=Widget:Highlight&amp;diff=126927&amp;oldid=prev"/>
		<updated>2018-12-26T17:09:41Z</updated>

		<summary type="html">&lt;p&gt;(by SublimeText.Mediawiker)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;script&lt;br /&gt;
  src=&amp;quot;https://code.jquery.com/jquery-1.12.4.js&amp;quot;&lt;br /&gt;
  integrity=&amp;quot;sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU=&amp;quot;&lt;br /&gt;
  crossorigin=&amp;quot;anonymous&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * jQuery Highlight plugin&lt;br /&gt;
 *&lt;br /&gt;
 * Based on highlight v3 by Johann Burkard&lt;br /&gt;
 * http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html&lt;br /&gt;
 *&lt;br /&gt;
 * Code a little bit refactored and cleaned (in my humble opinion).&lt;br /&gt;
 * Most important changes:&lt;br /&gt;
 *  - has an option to highlight only entire words (wordsOnly - false by default),&lt;br /&gt;
 *  - has an option to be case sensitive (caseSensitive - false by default)&lt;br /&gt;
 *  - highlight element tag and class names can be specified in options&lt;br /&gt;
 *&lt;br /&gt;
 * Usage:&lt;br /&gt;
 *   // wrap every occurrance of text &amp;#039;lorem&amp;#039; in content&lt;br /&gt;
 *   // with &amp;lt;span class=&amp;#039;highlight&amp;#039;&amp;gt; (default options)&lt;br /&gt;
 *   $(&amp;#039;#content&amp;#039;).highlight(&amp;#039;lorem&amp;#039;);&lt;br /&gt;
 *&lt;br /&gt;
 *   // search for and highlight more terms at once&lt;br /&gt;
 *   // so you can save some time on traversing DOM&lt;br /&gt;
 *   $(&amp;#039;#content&amp;#039;).highlight([&amp;#039;lorem&amp;#039;, &amp;#039;ipsum&amp;#039;]);&lt;br /&gt;
 *   $(&amp;#039;#content&amp;#039;).highlight(&amp;#039;lorem ipsum&amp;#039;);&lt;br /&gt;
 *&lt;br /&gt;
 *   // search only for entire word &amp;#039;lorem&amp;#039;&lt;br /&gt;
 *   $(&amp;#039;#content&amp;#039;).highlight(&amp;#039;lorem&amp;#039;, { wordsOnly: true });&lt;br /&gt;
 *&lt;br /&gt;
 *   // don&amp;#039;t ignore case during search of term &amp;#039;lorem&amp;#039;&lt;br /&gt;
 *   $(&amp;#039;#content&amp;#039;).highlight(&amp;#039;lorem&amp;#039;, { caseSensitive: true });&lt;br /&gt;
 *&lt;br /&gt;
 *   // wrap every occurrance of term &amp;#039;ipsum&amp;#039; in content&lt;br /&gt;
 *   // with &amp;lt;em class=&amp;#039;important&amp;#039;&amp;gt;&lt;br /&gt;
 *   $(&amp;#039;#content&amp;#039;).highlight(&amp;#039;ipsum&amp;#039;, { element: &amp;#039;em&amp;#039;, className: &amp;#039;important&amp;#039; });&lt;br /&gt;
 *&lt;br /&gt;
 *   // remove default highlight&lt;br /&gt;
 *   $(&amp;#039;#content&amp;#039;).unhighlight();&lt;br /&gt;
 *&lt;br /&gt;
 *   // remove custom highlight&lt;br /&gt;
 *   $(&amp;#039;#content&amp;#039;).unhighlight({ element: &amp;#039;em&amp;#039;, className: &amp;#039;important&amp;#039; });&lt;br /&gt;
 *&lt;br /&gt;
 *&lt;br /&gt;
 * Copyright (c) 2009 Bartek Szopka&lt;br /&gt;
 *&lt;br /&gt;
 * Licensed under MIT license.&lt;br /&gt;
 *&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
jQuery.extend({&lt;br /&gt;
    highlight: function (node, re, nodeName, className) {&lt;br /&gt;
        if (node.nodeType === 3) {&lt;br /&gt;
            var match = node.data.match(re);&lt;br /&gt;
            if (match) {&lt;br /&gt;
                var highlight = document.createElement(nodeName || &amp;#039;span&amp;#039;);&lt;br /&gt;
                highlight.className = className || &amp;#039;highlight&amp;#039;;&lt;br /&gt;
                var wordNode = node.splitText(match.index);&lt;br /&gt;
                wordNode.splitText(match[0].length);&lt;br /&gt;
                var wordClone = wordNode.cloneNode(true);&lt;br /&gt;
                highlight.appendChild(wordClone);&lt;br /&gt;
                wordNode.parentNode.replaceChild(highlight, wordNode);&lt;br /&gt;
                return 1; //skip added node in parent&lt;br /&gt;
            }&lt;br /&gt;
        } else if ((node.nodeType === 1 &amp;amp;&amp;amp; node.childNodes) &amp;amp;&amp;amp; // only element nodes that have children&lt;br /&gt;
                !/(script|style)/i.test(node.tagName) &amp;amp;&amp;amp; // ignore script and style nodes&lt;br /&gt;
                !(node.tagName === nodeName.toUpperCase() &amp;amp;&amp;amp; node.className === className)) { // skip if already highlighted&lt;br /&gt;
            for (var i = 0; i &amp;lt; node.childNodes.length; i++) {&lt;br /&gt;
                i += jQuery.highlight(node.childNodes[i], re, nodeName, className);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        return 0;&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
jQuery.fn.unhighlight = function (options) {&lt;br /&gt;
    var settings = { className: &amp;#039;highlight&amp;#039;, element: &amp;#039;span&amp;#039; };&lt;br /&gt;
    jQuery.extend(settings, options);&lt;br /&gt;
&lt;br /&gt;
    return this.find(settings.element + &amp;quot;.&amp;quot; + settings.className).each(function () {&lt;br /&gt;
        var parent = this.parentNode;&lt;br /&gt;
        parent.replaceChild(this.firstChild, this);&lt;br /&gt;
        parent.normalize();&lt;br /&gt;
    }).end();&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
jQuery.fn.highlight = function (words, options) {&lt;br /&gt;
    var settings = { className: &amp;#039;highlight&amp;#039;, element: &amp;#039;span&amp;#039;, caseSensitive: false, wordsOnly: false };&lt;br /&gt;
    jQuery.extend(settings, options);&lt;br /&gt;
    &lt;br /&gt;
    if (words.constructor === String) {&lt;br /&gt;
        words = [words];&lt;br /&gt;
    }&lt;br /&gt;
    words = jQuery.grep(words, function(word, i){&lt;br /&gt;
      return word != &amp;#039;&amp;#039;;&lt;br /&gt;
    });&lt;br /&gt;
    words = jQuery.map(words, function(word, i) {&lt;br /&gt;
      return word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, &amp;quot;\\$&amp;amp;&amp;quot;);&lt;br /&gt;
    });&lt;br /&gt;
    if (words.length == 0) { return this; };&lt;br /&gt;
&lt;br /&gt;
    var flag = settings.caseSensitive ? &amp;quot;&amp;quot; : &amp;quot;i&amp;quot;;&lt;br /&gt;
    var pattern = &amp;quot;(&amp;quot; + words.join(&amp;quot;|&amp;quot;) + &amp;quot;)&amp;quot;;&lt;br /&gt;
    if (settings.wordsOnly) {&lt;br /&gt;
        pattern = &amp;quot;\\b&amp;quot; + pattern + &amp;quot;\\b&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    var re = new RegExp(pattern, flag);&lt;br /&gt;
    &lt;br /&gt;
    return this.each(function () {&lt;br /&gt;
        jQuery.highlight(this, re, settings.element, settings.className);&lt;br /&gt;
    });&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
$(function() {&lt;br /&gt;
	$(&amp;#039;#searchresults&amp;#039;).highlight(&amp;#039;&amp;lt;!--{$term}--&amp;gt;&amp;#039;);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeremi</name></author>
	</entry>
</feed>