<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: Testing the Syntax High-Lighter</title>
	<atom:link href="http://yaserzt.com/blog/archives/160/feed" rel="self" type="application/rss+xml" />
	<link>http://yaserzt.com/blog/archives/160</link>
	<description>Shadowlessness, and how it feels.</description>
	<lastBuildDate>Fri, 30 Dec 2011 19:29:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: MatGill</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-3314</link>
		<dc:creator>MatGill</dc:creator>
		<pubDate>Sat, 07 Jun 2008 20:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-3314</guid>
		<description>[sourcecode language=&#039;cpp&#039;]
int main() {
    return -1;
}
[/sourcecode]</description>
		<content:encoded><![CDATA[<p>[sourcecode language='cpp']<br />
int main() {<br />
    return -1;<br />
}<br />
[/sourcecode]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzt</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-488</link>
		<dc:creator>yzt</dc:creator>
		<pubDate>Sun, 03 Feb 2008 07:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-488</guid>
		<description>Unfortunately, if there are such settings, I can&#039;t find them (unless I modify the code, as far as I can tell.)
I will investigate other plug-ins when I have time, but this plugin strikes me as quite good, and more usable than others. I wonder if I can manage something with my post and comment templates...</description>
		<content:encoded><![CDATA[<p>Unfortunately, if there are such settings, I can&#8217;t find them (unless I modify the code, as far as I can tell.)<br />
I will investigate other plug-ins when I have time, but this plugin strikes me as quite good, and more usable than others. I wonder if I can manage something with my post and comment templates&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MatGill</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-431</link>
		<dc:creator>MatGill</dc:creator>
		<pubDate>Fri, 25 Jan 2008 17:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-431</guid>
		<description>I suppose there are settings to sets that. If nothing works, try using other plugins. There is this plugin with witch you can add &quot;code&quot; tags.


&lt;code&gt;
</description>
		<content:encoded><![CDATA[<p>I suppose there are settings to sets that. If nothing works, try using other plugins. There is this plugin with witch you can add &#8220;code&#8221; tags.</p>
<p><code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nemo</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-429</link>
		<dc:creator>nemo</dc:creator>
		<pubDate>Fri, 25 Jan 2008 11:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-429</guid>
		<description>Shadows always prevail...

#include 
using namespace std;

int main (int argc, char * argv [])
{
    cout &lt;&lt; argv[0] &lt; 1)
        return main (argc - 1, argv + 1);
    else
        return 0;
}
</description>
		<content:encoded><![CDATA[<p>Shadows always prevail&#8230;</p>
<p>#include<br />
using namespace std;</p>
<p>int main (int argc, char * argv [])<br />
{<br />
    cout &lt;&lt; argv[0] &lt; 1)<br />
        return main (argc &#8211; 1, argv + 1);<br />
    else<br />
        return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzt</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-428</link>
		<dc:creator>yzt</dc:creator>
		<pubDate>Fri, 25 Jan 2008 11:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-428</guid>
		<description>:-(
&lt;pre lang=&quot;cpp&quot; line=&quot;1&quot;&gt;
#include &lt;iostream&gt;
using namespace std;

int main (int argc, char * argv [])
{
    cout &lt;&lt; argv[0] &lt;&lt; endl;
    if (argc &gt; 1)
        return main (argc - 1, argv + 1);
    else
        return 0;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p> <img src='http://yaserzt.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#include &lt;iostream&gt;</span>
<span style="color: #0000ff;">using</span> <span style="color: #0000ff;">namespace</span> std<span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000ff;">int</span> main <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span> argv <span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #0000dd;">cout</span> <span style="color: #000080;">&lt;&lt;</span> argv<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#93;</span> <span style="color: #000080;">&lt;&lt;</span> endl<span style="color: #008080;">;</span>
    <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>argc <span style="color: #000080;">&gt;</span> <span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span>
        <span style="color: #0000ff;">return</span> main <span style="color: #008000;">&#40;</span>argc <span style="color: #000040;">-</span> <span style="color: #0000dd;">1</span>, argv <span style="color: #000040;">+</span> <span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #0000ff;">else</span>
        <span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: nemo</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-427</link>
		<dc:creator>nemo</dc:creator>
		<pubDate>Fri, 25 Jan 2008 11:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-427</guid>
		<description>
#include 
using namespace std;

int main (int argc, char * argv [])
{
    cout &lt;&lt; argv[0] &lt; 1)
        return main (argc - 1, argv + 1);
    else
        return 0;
}
</description>
		<content:encoded><![CDATA[<p>#include<br />
using namespace std;</p>
<p>int main (int argc, char * argv [])<br />
{<br />
    cout &lt;&lt; argv[0] &lt; 1)<br />
        return main (argc &#8211; 1, argv + 1);<br />
    else<br />
        return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nemo</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-426</link>
		<dc:creator>nemo</dc:creator>
		<pubDate>Fri, 25 Jan 2008 11:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-426</guid>
		<description>Upped to &quot;Author&quot;.

#include 
using namespace std;

int main (int argc, char * argv [])
{
    cout &lt;&lt; argv[0] &lt; 1)
        return main (argc - 1, argv + 1);
    else
        return 0;
}
</description>
		<content:encoded><![CDATA[<p>Upped to &#8220;Author&#8221;.</p>
<p>#include<br />
using namespace std;</p>
<p>int main (int argc, char * argv [])<br />
{<br />
    cout &lt;&lt; argv[0] &lt; 1)<br />
        return main (argc &#8211; 1, argv + 1);<br />
    else<br />
        return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nemo</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-425</link>
		<dc:creator>nemo</dc:creator>
		<pubDate>Fri, 25 Jan 2008 11:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-425</guid>
		<description>D@mn!
I changed the role to &quot;Contributor&quot; instead of &quot;Subscriber&quot;. Let&#039;s see...

#include 
using namespace std;

int main (int argc, char * argv [])
{
    cout &lt;&lt; argv[0] &lt; 1)
        return main (argc - 1, argv + 1);
    else
        return 0;
}
</description>
		<content:encoded><![CDATA[<p>D@mn!<br />
I changed the role to &#8220;Contributor&#8221; instead of &#8220;Subscriber&#8221;. Let&#8217;s see&#8230;</p>
<p>#include<br />
using namespace std;</p>
<p>int main (int argc, char * argv [])<br />
{<br />
    cout &lt;&lt; argv[0] &lt; 1)<br />
        return main (argc &#8211; 1, argv + 1);<br />
    else<br />
        return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nemo</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-424</link>
		<dc:creator>nemo</dc:creator>
		<pubDate>Fri, 25 Jan 2008 11:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-424</guid>
		<description>Hi, it&#039;s me! Let&#039;s see if a registered user (just typical subscription) can use &quot;pre&quot;.


#include 
using namespace std;

int main (int argc, char * argv [])
{
    cout &lt;&lt; argv[0] &lt; 1)
        return main (argc - 1, argv + 1);
    else
        return 0
}
</description>
		<content:encoded><![CDATA[<p>Hi, it&#8217;s me! Let&#8217;s see if a registered user (just typical subscription) can use &#8220;pre&#8221;.</p>
<p>#include<br />
using namespace std;</p>
<p>int main (int argc, char * argv [])<br />
{<br />
    cout &lt;&lt; argv[0] &lt; 1)<br />
        return main (argc &#8211; 1, argv + 1);<br />
    else<br />
        return 0<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzt's alter-ego</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-422</link>
		<dc:creator>yzt's alter-ego</dc:creator>
		<pubDate>Fri, 25 Jan 2008 10:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-422</guid>
		<description>It seems that unregistered users can&#039;t use some tags (all tags?) in their comments.</description>
		<content:encoded><![CDATA[<p>It seems that unregistered users can&#8217;t use some tags (all tags?) in their comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzt's alter-ego</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-421</link>
		<dc:creator>yzt's alter-ego</dc:creator>
		<pubDate>Fri, 25 Jan 2008 10:24:27 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-421</guid>
		<description>Testing as a not-logged in user.

#include 
using namespace std;

int main (int argc, char * argv [])
{
    cout &lt;&lt; argv[0] &lt; 1)
        return main (argc - 1, argv + 1);
    else
        return 0 
}
</description>
		<content:encoded><![CDATA[<p>Testing as a not-logged in user.</p>
<p>#include<br />
using namespace std;</p>
<p>int main (int argc, char * argv [])<br />
{<br />
    cout &lt;&lt; argv[0] &lt; 1)<br />
        return main (argc &#8211; 1, argv + 1);<br />
    else<br />
        return 0<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzt</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-419</link>
		<dc:creator>yzt</dc:creator>
		<pubDate>Fri, 25 Jan 2008 08:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-419</guid>
		<description>Obviously, that didn&#039;t work. What&#039;s wrong with 
&lt;pre lang=&quot;cpp&quot; line=&quot;1&quot;&gt;
// This is a &quot;pre&quot;. View source to confirm.
int main ()
{
    return 0;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Obviously, that didn&#8217;t work. What&#8217;s wrong with</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #666666;">// This is a &quot;pre&quot;. View source to confirm.</span>
<span style="color: #0000ff;">int</span> main <span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: yzt</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-418</link>
		<dc:creator>yzt</dc:creator>
		<pubDate>Fri, 25 Jan 2008 08:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-418</guid>
		<description>Are you sure? It let&#039;s me &lt;pre&gt;p      r       e&lt;/pre&gt; as much as I want!
I wonder if other tags work as well with the &quot;lang&quot; attribute. Let&#039;s see.
&lt;div lang=&quot;cpp&quot;&gt;
// This is a &quot;div&quot;
int main ()
{
    return 0;
}
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Are you sure? It let&#8217;s me
<pre>p      r       e</pre>
<p> as much as I want!<br />
I wonder if other tags work as well with the &#8220;lang&#8221; attribute. Let&#8217;s see.</p>
<div lang="cpp">
// This is a &#8220;div&#8221;<br />
int main ()<br />
{<br />
    return 0;<br />
}
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: MatGill</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-416</link>
		<dc:creator>MatGill</dc:creator>
		<pubDate>Thu, 24 Jan 2008 23:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-416</guid>
		<description>Ok, I&#039;m not getting it. It doesn&#039;t let me &lt;b&gt;pre&lt;/b&gt; in here.</description>
		<content:encoded><![CDATA[<p>Ok, I&#8217;m not getting it. It doesn&#8217;t let me <b>pre</b> in here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MatGill</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-415</link>
		<dc:creator>MatGill</dc:creator>
		<pubDate>Thu, 24 Jan 2008 23:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-415</guid>
		<description>

int main() {return 0;}

</description>
		<content:encoded><![CDATA[<p>int main() {return 0;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MatGill</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-414</link>
		<dc:creator>MatGill</dc:creator>
		<pubDate>Thu, 24 Jan 2008 23:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-414</guid>
		<description>Test

int main() {return 0;}
</description>
		<content:encoded><![CDATA[<p>Test</p>
<p>int main() {return 0;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MatGill</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-413</link>
		<dc:creator>MatGill</dc:creator>
		<pubDate>Thu, 24 Jan 2008 23:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-413</guid>
		<description>
Is this &lt;b&gt;HTML&lt;/b&gt;. Yes it is!
</description>
		<content:encoded><![CDATA[<p>Is this <b>HTML</b>. Yes it is!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MatGill</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-412</link>
		<dc:creator>MatGill</dc:creator>
		<pubDate>Thu, 24 Jan 2008 23:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-412</guid>
		<description>

#include 
#include 
#include 
#include 

#define min(x, y) ((x)(y)?(x):(y))

using namespace std;

int main() {
	#ifndef ONLINE_JUDGE
	freopen(&quot;200.in&quot;, &quot;r&quot;, stdin);
	#endif

	map&lt;char, set &gt; all;

	string last = &quot;&quot;;
	string s;
	
	while (cin &gt;&gt; s, s!= &quot;#&quot;) {

		int i;
		for (i = 0; i &lt; s.size() &amp;&amp; i &lt; last.size() &amp;&amp; s[i] == last[i]; i++);
		
		if (i &lt; s.size() &amp;&amp; i &lt; last.size()) {
		    all[s[i]].insert(last[i]);
			if (all.find(last[i]) == all.end())
			    all[last[i]].clear();
		}
		    
  		last = s;
	}

	while(all.size()) {

		for (map&lt;char, set &gt;::iterator iter = all.begin(); iter != all.end(); iter++) {
			if (iter-&gt;second.size()==0) {
				char c = iter-&gt;first;
				cout &lt;&lt; c;
				
				for (map&lt;char, set &gt;::iterator iter1 = all.begin(); iter1 != all.end(); iter1++)
				    iter1-&gt;second.erase(c);

				all.erase(c);
				break;
			}
		}
	}

	cout &lt;&lt; endl;

	#ifndef ONLINE_JUDGE
	cout &lt;&lt; &quot;DONE&quot; &lt;&lt; endl;
	while(1);
	#endif
	return 0;
}


</description>
		<content:encoded><![CDATA[<p>#include<br />
#include<br />
#include<br />
#include </p>
<p>#define min(x, y) ((x)(y)?(x):(y))</p>
<p>using namespace std;</p>
<p>int main() {<br />
	#ifndef ONLINE_JUDGE<br />
	freopen(&#8220;200.in&#8221;, &#8220;r&#8221;, stdin);<br />
	#endif</p>
<p>	map&lt;char, set &gt; all;</p>
<p>	string last = &#8220;&#8221;;<br />
	string s;</p>
<p>	while (cin &gt;&gt; s, s!= &#8220;#&#8221;) {</p>
<p>		int i;<br />
		for (i = 0; i &lt; s.size() &amp;&amp; i &lt; last.size() &amp;&amp; s[i] == last[i]; i++);</p>
<p>		if (i &lt; s.size() &amp;&amp; i &lt; last.size()) {<br />
		    all[s[i]].insert(last[i]);<br />
			if (all.find(last[i]) == all.end())<br />
			    all[last[i]].clear();<br />
		}</p>
<p>  		last = s;<br />
	}</p>
<p>	while(all.size()) {</p>
<p>		for (map&lt;char, set &gt;::iterator iter = all.begin(); iter != all.end(); iter++) {<br />
			if (iter-&gt;second.size()==0) {<br />
				char c = iter-&gt;first;<br />
				cout &lt;&lt; c;</p>
<p>				for (map&lt;char, set &gt;::iterator iter1 = all.begin(); iter1 != all.end(); iter1++)<br />
				    iter1-&gt;second.erase(c);</p>
<p>				all.erase(c);<br />
				break;<br />
			}<br />
		}<br />
	}</p>
<p>	cout &lt;&lt; endl;</p>
<p>	#ifndef ONLINE_JUDGE<br />
	cout &lt;&lt; &#8220;DONE&#8221; &lt;&lt; endl;<br />
	while(1);<br />
	#endif<br />
	return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MatGill</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-411</link>
		<dc:creator>MatGill</dc:creator>
		<pubDate>Thu, 24 Jan 2008 23:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-411</guid>
		<description>Ok, lets test this:

#include 
#include 
#include 
#include 

#define min(x, y) ((x)(y)?(x):(y))

using namespace std;

int main() {
	#ifndef ONLINE_JUDGE
	freopen(&quot;200.in&quot;, &quot;r&quot;, stdin);
	#endif

	map&lt;char, set &gt; all;

	string last = &quot;&quot;;
	string s;
	
	while (cin &gt;&gt; s, s!= &quot;#&quot;) {

		int i;
		for (i = 0; i &lt; s.size() &amp;&amp; i &lt; last.size() &amp;&amp; s[i] == last[i]; i++);
		
		if (i &lt; s.size() &amp;&amp; i &lt; last.size()) {
		    all[s[i]].insert(last[i]);
			if (all.find(last[i]) == all.end())
			    all[last[i]].clear();
		}
		    
  		last = s;
	}

	while(all.size()) {

		for (map&lt;char, set &gt;::iterator iter = all.begin(); iter != all.end(); iter++) {
			if (iter-&gt;second.size()==0) {
				char c = iter-&gt;first;
				cout &lt;&lt; c;
				
				for (map&lt;char, set &gt;::iterator iter1 = all.begin(); iter1 != all.end(); iter1++)
				    iter1-&gt;second.erase(c);

				all.erase(c);
				break;
			}
		}
	}

	cout &lt;&lt; endl;

	#ifndef ONLINE_JUDGE
	cout &lt;&lt; &quot;DONE&quot; &lt;&lt; endl;
	while(1);
	#endif
	return 0;
}

</description>
		<content:encoded><![CDATA[<p>Ok, lets test this:</p>
<p>#include<br />
#include<br />
#include<br />
#include </p>
<p>#define min(x, y) ((x)(y)?(x):(y))</p>
<p>using namespace std;</p>
<p>int main() {<br />
	#ifndef ONLINE_JUDGE<br />
	freopen(&#8220;200.in&#8221;, &#8220;r&#8221;, stdin);<br />
	#endif</p>
<p>	map&lt;char, set &gt; all;</p>
<p>	string last = &#8220;&#8221;;<br />
	string s;</p>
<p>	while (cin &gt;&gt; s, s!= &#8220;#&#8221;) {</p>
<p>		int i;<br />
		for (i = 0; i &lt; s.size() &amp;&amp; i &lt; last.size() &amp;&amp; s[i] == last[i]; i++);</p>
<p>		if (i &lt; s.size() &amp;&amp; i &lt; last.size()) {<br />
		    all[s[i]].insert(last[i]);<br />
			if (all.find(last[i]) == all.end())<br />
			    all[last[i]].clear();<br />
		}</p>
<p>  		last = s;<br />
	}</p>
<p>	while(all.size()) {</p>
<p>		for (map&lt;char, set &gt;::iterator iter = all.begin(); iter != all.end(); iter++) {<br />
			if (iter-&gt;second.size()==0) {<br />
				char c = iter-&gt;first;<br />
				cout &lt;&lt; c;</p>
<p>				for (map&lt;char, set &gt;::iterator iter1 = all.begin(); iter1 != all.end(); iter1++)<br />
				    iter1-&gt;second.erase(c);</p>
<p>				all.erase(c);<br />
				break;<br />
			}<br />
		}<br />
	}</p>
<p>	cout &lt;&lt; endl;</p>
<p>	#ifndef ONLINE_JUDGE<br />
	cout &lt;&lt; &#8220;DONE&#8221; &lt;&lt; endl;<br />
	while(1);<br />
	#endif<br />
	return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzt</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-410</link>
		<dc:creator>yzt</dc:creator>
		<pubDate>Thu, 24 Jan 2008 21:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-410</guid>
		<description>Good. Pretty coloring. But why it doesn&#039;t recognize &quot;bool&quot; as a keyword?!</description>
		<content:encoded><![CDATA[<p>Good. Pretty coloring. But why it doesn&#8217;t recognize &#8220;bool&#8221; as a keyword?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzt</title>
		<link>http://yaserzt.com/blog/archives/160/comment-page-1#comment-409</link>
		<dc:creator>yzt</dc:creator>
		<pubDate>Thu, 24 Jan 2008 21:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://yaserzt.com/blog/2008/01/25/testing-the-syntax-high-lighter/#comment-409</guid>
		<description>Does it work in comments? Let&#039;s see.
&lt;pre lang=&quot;cpp&quot; line=&quot;1&quot;&gt;
// Back in the days before templates, we could do this
// for compile-time asserts (took me 3 years to come up with,
// when I could have read 2 lines of code!)
// Remember that a zero-sized array is illegal.
#define STATIC_ASSERT(expr) do{ typedef char __Useless [(expr)?1:0];} while (0)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Does it work in comments? Let&#8217;s see.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #666666;">// Back in the days before templates, we could do this</span>
<span style="color: #666666;">// for compile-time asserts (took me 3 years to come up with,</span>
<span style="color: #666666;">// when I could have read 2 lines of code!)</span>
<span style="color: #666666;">// Remember that a zero-sized array is illegal.</span>
<span style="color: #339900;">#define STATIC_ASSERT(expr) do{ typedef char __Useless [(expr)?1:0];} while (0)</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
</channel>
</rss>

