<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to formatAlgorithm Function</title><link>https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%2520Function/</link><description>Recent changes to formatAlgorithm Function</description><atom:link href="https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%20Function/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 10 Jun 2014 11:17:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%20Function/feed" rel="self" type="application/rss+xml"/><item><title>formatAlgorithm Function modified by Frank Vanhoof</title><link>https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%2520Function/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Vanhoof</dc:creator><pubDate>Tue, 10 Jun 2014 11:17:19 -0000</pubDate><guid>https://sourceforge.net52e82b7f1df3e6ec19ff5f42207d4b031668b1c1</guid></item><item><title>formatAlgorithm Function modified by Frank Vanhoof</title><link>https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%2520Function/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Vanhoof</dc:creator><pubDate>Tue, 10 Jun 2014 11:16:53 -0000</pubDate><guid>https://sourceforge.net60b45718b3090dd984f49f595f63c3ff32b5e0f3</guid></item><item><title>formatAlgorithm Function modified by Frank Vanhoof</title><link>https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%2520Function/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -28,7 +28,8 @@
 ~~~~~
     .prime { color:red; }
 ~~~~~
-+ In the JavaScript call the formatAlgorithm function to get a string containing CSS formatted HTML. 
+In the JavaScript call the formatAlgorithm function to get a string containing CSS formatted HTML. 
+

 ~~~~~
     document.getElementById("ePermAlg").innerHTML=pageCube.formatAlgorithm("R2UR\'y(U\'R\'U)3 Y\'RU\'R2");
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Vanhoof</dc:creator><pubDate>Tue, 10 Jun 2014 11:16:25 -0000</pubDate><guid>https://sourceforge.neta9d469611c05015aca8e9ef4e283b07b6d224afa</guid></item><item><title>formatAlgorithm Function modified by Frank Vanhoof</title><link>https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%2520Function/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -29,8 +29,9 @@
     .prime { color:red; }
 ~~~~~
 + In the JavaScript call the formatAlgorithm function to get a string containing CSS formatted HTML. 
+
 ~~~~~
-     document.getElementById("ePermAlg").innerHTML=pageCube.formatAlgorithm("R2UR\'y(U\'R\'U)3 Y\'RU\'R2");
+    document.getElementById("ePermAlg").innerHTML=pageCube.formatAlgorithm("R2UR\'y(U\'R\'U)3 Y\'RU\'R2");
 ~~~~~

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Vanhoof</dc:creator><pubDate>Fri, 12 Jul 2013 17:08:33 -0000</pubDate><guid>https://sourceforge.net763b6575e42b5b00dbe870006ed4491ebcfaaa5c</guid></item><item><title>formatAlgorithm Function modified by Frank Vanhoof</title><link>https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%2520Function/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -9,6 +9,10 @@
 * prime
 * supscript
 * rotation
+
+
+**formatAlgorithm(algorithm)**
+

 Parameters
 -----------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Vanhoof</dc:creator><pubDate>Fri, 12 Jul 2013 17:07:44 -0000</pubDate><guid>https://sourceforge.net75d50f6c79335b691521756bf59d6c5e2420c199</guid></item><item><title>formatAlgorithm Function modified by Frank Vanhoof</title><link>https://sourceforge.net/p/cubescribe/wiki/formatAlgorithm%2520Function/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="formatalgorithm-function"&gt;formatAlgorithm() Function&lt;/h1&gt;
&lt;p&gt;The formatAlgorithm is a function that adds the HTML markup to the various &lt;br /&gt;
parts of the algorithm to emphasize primes and double moves. This function&lt;br /&gt;
also requires each of the styles marked in the HTML as classes&lt;br /&gt;
and are defined in the CSS as class selectors.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;prime&lt;/li&gt;
&lt;li&gt;supscript&lt;/li&gt;
&lt;li&gt;rotation&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="parameters"&gt;Parameters&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;algorithm&lt;/strong&gt;&lt;br /&gt;
A string containing the algorithm. Make sure single quotes are&lt;br /&gt;
escaped.&lt;br /&gt;
&lt;/p&gt;
&lt;h2 id="example"&gt;Example:&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In CSS create a selector and rule for the class.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prime&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;In the JavaScript call the formatAlgorithm function to get a string containing CSS formatted HTML. &lt;br /&gt;
     document.getElementById("ePermAlg").innerHTML=pageCube.formatAlgorithm("R2UR\'y(U\'R\'U)3 Y\'RU\'R2");&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frank Vanhoof</dc:creator><pubDate>Fri, 12 Jul 2013 17:02:11 -0000</pubDate><guid>https://sourceforge.netf1416edd31853bc72bfd3a363a801494e29384be</guid></item></channel></rss>