<?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>Just2us &#187; wordpress</title>
	<atom:link href="http://blog.just2us.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.just2us.com</link>
	<description>discuss on technology &#38; application development</description>
	<lastBuildDate>Sat, 04 Feb 2012 06:55:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to highlight code syntax in WordPress</title>
		<link>http://blog.just2us.com/2010/05/how-to-highlight-code-syntax-in-wordpress/</link>
		<comments>http://blog.just2us.com/2010/05/how-to-highlight-code-syntax-in-wordpress/#comments</comments>
		<pubDate>Sat, 22 May 2010 15:41:29 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://just2us.com/?p=384</guid>
		<description><![CDATA[
			
				
			
		
WP-Syntax is the answer.
For example, this is how I highlight an iPhone’s Objective-C code in this post.

- &#40;void&#41;viewDidLoad   
&#123;    
    &#91;super viewDidLoad&#93;;    
    NSString *title = &#91;NSString stringWithFormat:@&#34;My %@ syntax&#34;, @&#34;AWESOME&#34;&#93;;    
    self.title = title;    
&#125;

 
To use WP-Syntax, simply surround the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.just2us.com%2F2010%2F05%2Fhow-to-highlight-code-syntax-in-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.just2us.com%2F2010%2F05%2Fhow-to-highlight-code-syntax-in-wordpress%2F&amp;source=samwize&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a> is the answer.</p>
<p>For example, this is how I highlight an iPhone’s Objective-C code in this post.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>viewDidLoad   
<span style="color: #002200;">&#123;</span>    
    <span style="color: #002200;">&#91;</span>super viewDidLoad<span style="color: #002200;">&#93;</span>;    
    <span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>title <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #400080;">NSString</span> stringWithFormat<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;My %@ syntax&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;AWESOME&quot;</span><span style="color: #002200;">&#93;</span>;    
    self.title <span style="color: #002200;">=</span> title;    
<span style="color: #002200;">&#125;</span></pre></div></div>

<p> <br />
To use <a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a>, simply surround the code with &lt;pre lang=”LANGUAGE”&gt; and &lt;/pre&gt;, where LANGUAGE is the programming language.</p>
<p>To find out what to use for LANGUAGE, look under supported languages <a href="http://wordpress.org/extend/plugins/wp-syntax/other_notes/">here</a>.
</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2010/05/how-to-highlight-code-syntax-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What to do if WordPress is not displaying UTF-8 correctly?</title>
		<link>http://blog.just2us.com/2010/03/what-to-do-if-wordpress-is-not-displaying-utf-8-correctly/</link>
		<comments>http://blog.just2us.com/2010/03/what-to-do-if-wordpress-is-not-displaying-utf-8-correctly/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 17:51:37 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://just2us.com/2010/03/what-to-do-if-wordpress-is-not-displaying-utf-8-correctly/</guid>
		<description><![CDATA[
			
				
			
		
A while ago, this blog was not showing correctly some chinese (UTF-8) characters.
It was due to the WordPress that I have set up using a wrong character set. It was using latin1 instead of UTF-8.
To solve the problem, you could go to phpMyAdmin, and run the following SQLs.    Note: Change wrdp1 to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.just2us.com%2F2010%2F03%2Fwhat-to-do-if-wordpress-is-not-displaying-utf-8-correctly%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.just2us.com%2F2010%2F03%2Fwhat-to-do-if-wordpress-is-not-displaying-utf-8-correctly%2F&amp;source=samwize&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A while ago, this blog was not showing correctly some chinese (UTF-8) characters.</p>
<p>It was due to the WordPress that I have set up using a wrong character set. It was using latin1 instead of UTF-8.</p>
<p>To solve the problem, you could go to phpMyAdmin, and run the following SQLs.    <br />Note: Change wrdp1 to your wordpress database name accordingly.</p>
<p><font face="Courier">ALTER TABLE wrdp1.wp_comments CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;     <br />ALTER TABLE wrdp1.wp_links CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;      <br />ALTER TABLE wrdp1.wp_options CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;      <br />ALTER TABLE wrdp1.wp_postmeta CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;      <br />ALTER TABLE wrdp1.wp_posts CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;      <br />ALTER TABLE wrdp1.wp_terms CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;      <br />ALTER TABLE wrdp1.wp_term_relationships CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;      <br />ALTER TABLE wrdp1.wp_term_taxonomy CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;      <br />ALTER TABLE wrdp1.wp_usermeta CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;      <br />ALTER TABLE wrdp1.wp_users CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;</font> </p>
<p><a href="http://just2us.com/site/wp-content/uploads/2010/03/phpmyadmin.png"><img title="phpmyadmin" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="239" alt="phpmyadmin" src="http://just2us.com/site/wp-content/uploads/2010/03/phpmyadmin_thumb.png" width="606" border="0" /></a></p>
<p>The result should be like the table above. </p>
<p>But note that we are not able to recover any UTF-8 characters that were in a post before this operation. You would need to edit the post, enter the correct UTF-8, and save.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.just2us.com/2010/03/what-to-do-if-wordpress-is-not-displaying-utf-8-correctly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

