<?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>あらびき林檎。 &#187; WordPress</title>
	<atom:link href="http://splitchin.com/tech/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://splitchin.com/tech</link>
	<description>Macや, iPhoneでの,Webデザイン,アプリ開発などを綴ってます。</description>
	<lastBuildDate>Sun, 06 May 2012 01:09:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhoneサイトに、AdMob広告を入れる。</title>
		<link>http://splitchin.com/tech/2010/01/14/iphone%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%80%81admob%e5%ba%83%e5%91%8a%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/01/14/iphone%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%80%81admob%e5%ba%83%e5%91%8a%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 15:20:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[AdMob]]></category>
		<category><![CDATA[WPTouch]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=677</guid>
		<description><![CDATA[				互換インクならこちら
				
				
				昨年、Googleが7億5千万ドルでM&#038;AしたAdMob社ですが、
				Androidのインプレッション数は、2倍になったそうです(2009/01/ [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://px.a8.net/svt/ejp?a8mat=1NLRJC+3F8SJM+20QC+644DU" target="_blank">互換インクならこちら</a><br />
				<img border="0" width="1" height="1" src="http://www11.a8.net/0.gif?a8mat=1NLRJC+3F8SJM+20QC+644DU" alt=""></p>
				<p>
				昨年、Googleが7億5千万ドルでM&#038;AしたAdMob社ですが、<br />
				Androidのインプレッション数は、2倍になったそうです(2009/01/15)<br />
				<a href="http://jp.techcrunch.com/tag/admob/" target="new">http://jp.techcrunch.com/tag/admob/</a></p>
				<p>iPhoneアプリだけでなく、webにも対応してるとのことなので、<br />
				<a href="http://www.ideaxidea.com/archives/2009/11/admob_on_iphone_blog.html" target="new">IDEA*IDEA</a>さんの記事を参考にさせて頂きながら、<br />
				Webサイトに入れてみました。
				</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/admob.png" alt="AdMob" title="admob" width="200" height="300" class="alignright size-full wp-image-713" /></p>
				<h4>AdMobに、登録します。</h4>
				<p><a href="http://jp.admob.com/" target="new">AdMobサイト</a>に行き、<br />
				「今すぐスタート」ボタンを押します。</p>
				<p>登録情報を入力します。
				</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/AdMob-regist.png" alt="AdMob登録" title="AdMob-regist" width="320" height="300" class="alignright size-full wp-image-678" /></p>
				<p>登録メールに、認証メールが送信されるので、メールを開いて、URLをクリックし、登録を完了させます。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/adMob-regconp.png" alt="AdMob登録完了" title="adMob-regconp" width="320" height="186" class="alignright size-full wp-image-679" /></p>
				<h4>サイトを追加する</h4>
				<p>「サイト及びアプリケーション」ー「サイト/アプリケーションの追加」を選択します。</p>
				<p>「サイトまたはアプリケーション タイプの選択」から「iPhone用サイト」を選択します。
				</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/AdMob-site.png" alt="AdMobサイトタイプ" title="AdMob-site" width="320" height="291" class="alignright size-full wp-image-680" /></p>
				<p>広告を貼るサイトの情報を入力します。広告の色なども選択できます。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/Admob-siteform.png" alt="AdMobサイト情報" title="Admob-siteform" width="320" height="292" class="alignright size-full wp-image-681" /></p>
				<p>次に進むと、広告のJSコードが表示されます。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/AdMob-code.png" alt="AdMob広告コード" title="AdMob-code" width="320" height="189" class="alignright size-full wp-image-685" /></p>
				<p>広告コードのサンプル</p>
				<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
var admob_vars = {
 pubid: '*******', // publisher id
 bgcolor: '333333', // background color (hex)
 text: 'eeeeee', // font-color (hex)
 test: true// test mode, set to false if non-test mode
};
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://mm.admob.com/static/iphone/iadmob.js&quot;&gt;&lt;/script&gt;
</pre>
				<p>注意）</p>
				<pre class="brush: jscript;">
 test: false// test mode, set to false if non-test mode
</pre>
				<p>デフォルトだと、「test:true」になっていて、テストモードで課金されなくなっているので、「test:false」に変更します。</p>
				<h4>iPhoneサイトの、広告を挿入したい場所に、広告コードを埋めます.</h4>
				<p>
				wptouch/themes/default/header.phpに広告コード埋めます。</p>
				<p>次の例は、タイトルヘッダーと、Searchの間に、広告を入れた時の例です。<br />
				特に、どこに埋めても良いようなので、入れたい位置にいれてください。
				</p>
				<pre class="brush: php;">
	&lt;/div&gt;
&lt;/div&gt;
&lt;!-- AdMob --&gt;
&lt;div class=&quot;admob-area&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var admob_vars = {
 pubid: 'xxxxxxxxxxx', // publisher id
 bgcolor: '333333', // background color (hex)
 text: 'eeeeee', // font-color (hex)
 test: false // test mode, set to false if non-test mode
};
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://mm.admob.com/static/iphone/iadmob.js&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;!-- /AdMob --&gt;
&lt;div id=&quot;drop-fade&quot;&gt;
	&lt;?php if (bnc_is_search_enabled()) { ?&gt;
    	&lt;a id=&quot;searchopen&quot; class=&quot;top&quot; href=&quot;#&quot; onclick=&quot;bnc_jquery_search_toggle(); return false;&quot;&gt;&lt;?php _e( 'Search', 'wptouch' ); ?&gt;&lt;/a&gt;
	&lt;?php } ?&gt;
</pre>
				<p>ついでに、style.cssも加えました。</p>
				<pre class="brush: xml;">
/* for AdMob */
admob-area {
        width: 100%;
	height: 48px;
	display:block;
}
/* end for AdMob */
</pre>
				<p>
				そして、ついでに、解析コードを、footer.phpに加えます。<br />
				PHPの場合、なぜか、最後の「?>」が抜けていて、そのまま貼ると<br />
				エラーになるので要注意。</p>
				<p>自分は、GoogleAnalyticsも使用しているので、その解析コードも挿入しました。</p>
				<p>さて、これでAdMob広告の挿入は完了です！<br />
				iPhoneから接続して確認してみてください。</p>
				<p>※wptouchプラグインをアップグレードすると、/themesファイル内も<br />
				　上書きされてしまうので、バックアップは取っておいた方が良いです。
				</p>
				<p><!-- amazon --></p>
				<div class="amazon-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4797351381" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /amazon --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/14/iphone%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%80%81admob%e5%ba%83%e5%91%8a%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPTouch &#8211; WordPressを、iPhone対応するプラグイン。</title>
		<link>http://splitchin.com/tech/2010/01/12/wptouch-wordpress%e3%82%92%e3%80%81iphone%e5%af%be%e5%bf%9c%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/01/12/wptouch-wordpress%e3%82%92%e3%80%81iphone%e5%af%be%e5%bf%9c%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%82/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 13:47:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone.WordPress]]></category>
		<category><![CDATA[WPTouch]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=602</guid>
		<description><![CDATA[				パソコン廃棄の経費削減：パソコン買取.com
				
				iPhone Safariから、WordPressにアクセスすると、下記のように、テーマを最適化してくれるプラグイン「WPTouch」を導入してみま [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://px.a8.net/svt/ejp?a8mat=1NLQR5+ATDJYA+1QLM+656YQ" target="_blank">パソコン廃棄の経費削減：パソコン買取.com</a><br />
				<img border="0" width="1" height="1" src="http://www14.a8.net/0.gif?a8mat=1NLQR5+ATDJYA+1QLM+656YQ" alt=""></p>
				<p>iPhone Safariから、WordPressにアクセスすると、下記のように、テーマを最適化してくれるプラグイン「WPTouch」を導入してみました。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneWPToch.png" alt="WPTouch iPhone" title="iPhoneWPToch" width="250" height="250" class="alignright size-full wp-image-612" /></p>
				<h3>1. WPTouchプラグインを、ダウンロードします。</h3>
				<p><a href="http://wordpress.org/extend/plugins/wptouch/" target="new">http://wordpress.org/extend/plugins/wptouch/</a></p>
				<p>ダウントードした、「wptouch」フォルダごと、Wordpressディレクトリ<br />
				「wp-contents/plugins/」にアップロードします。</p>
				<h3>2. WordPress管理画面から、プラグインの設定をします。</h3>
				<p>「WPTouch iPhone Theme」のプラグインを「使用する」にします。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/wp-tocuhcontl.png" alt="WPTouch 管理画面設定" title="wp-tocuhcontl" width="320" height="184" class="alignright size-full wp-image-609" /></p>
				<p>プラグインの「Setting」から、iPhoneでの表示項目の設定などできます。</p>
				<p>iPhone、Safariから、自分のWordPressのURLを入力して、表示を確認します。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneWPpage1.png" alt="WPtouch-iphone画面１" title="iPhoneWPpage1" width="320" height="260" class="alignright size-full wp-image-605" /><br />
				<img src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneWPpage2.png" alt="WPTouch iPhone画面2" title="iPhoneWPpage2" width="320" height="260" class="alignright size-full wp-image-606" /></p>
				<p><!-- Ad --></p>
				<div class="margin-area">
				<!-- Amazon --></p>
				<div class="amazon-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=B0010TA3MA" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon -->
				</div>
				<p><!-- Ad --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/12/wptouch-wordpress%e3%82%92%e3%80%81iphone%e5%af%be%e5%bf%9c%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter-Tools &#8211; WordPressの記事更新を、Twitterに通知するプラグイン</title>
		<link>http://splitchin.com/tech/2010/01/10/twitter-tools-wordpress%e3%81%ae%e8%a8%98%e4%ba%8b%e6%9b%b4%e6%96%b0%e3%82%92%e3%80%81twitter%e3%81%ab%e9%80%9a%e7%9f%a5%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/</link>
		<comments>http://splitchin.com/tech/2010/01/10/twitter-tools-wordpress%e3%81%ae%e8%a8%98%e4%ba%8b%e6%9b%b4%e6%96%b0%e3%82%92%e3%80%81twitter%e3%81%ab%e9%80%9a%e7%9f%a5%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 13:04:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Twitter-tools]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=570</guid>
		<description><![CDATA[				WordPressで投稿した記事を、自動でTwitterにつぶやきとして、投稿してくれる、WordPressプラグイン「Twitter-Tools」を試してみました。
				1. Twitter-Toolsの特 [...]]]></description>
			<content:encoded><![CDATA[				<p>WordPressで投稿した記事を、自動でTwitterにつぶやきとして、投稿してくれる、WordPressプラグイン「Twitter-Tools」を試してみました。</p>
				<h3>1. Twitter-Toolsの特徴</h3>
				<ol>
				<li>Twitterに送信したつぶやきを、ブログの記事として保存する</li>
				<li>Twitterに送信した1日分のつぶやきをまとめて、ブログの記事として保存する</li>
				<li>WordPressの管理画面からTwitterにつぶやきを送信する</li>
				<li>ブログに記事を書いたときにTwiterにつぶやきを送信する</li>
				<li>サイドバーにTwitterの最新つぶやきを表示する</li>
				<li>サイドバーからTwitterにつぶやきを送信する</li>
				</ol>
				<p>今回は、4.の用途で使ってみました。</p>
				<h3>2. Twitter-Toolsプラグインのダウンロード</h3>
				<p><img class="alignnone size-full wp-image-572" title="WordPress-TwitterTools" src="http://splitchin.com/tech/wp-content/uploads/2010/01/WordPress-TwitterTools.png" alt="WordPress　Twitter-Tools" width="320" height="174" /></p>
				<p>WordPressプラグイン、Twiiter-Toolsをダウンロードします。<br />
				<a href="http://wordpress.org/extend/plugins/twitter-tools/" target="new">http://wordpress.org/extend/plugins/twitter-tools/</a></p>
				<p>DLした、「twitter-tools」をフォルダごと、Wordpressディレクトリ<br />
				「wp-contents/plugins/」にアップロードします。</p>
				<h3>3. WordPressでの、Twitter-Toolsの設定</h3>
				<p>WordPressの管理画面、「プラグイン」から、twitter-toolsの設定をします。</p>
				<p><img class="alignnone size-full wp-image-577" title="twittertoolsplugin" src="http://splitchin.com/tech/wp-content/uploads/2010/01/twittertoolsplugin.png" alt="twitter-tools plugin" width="320" height="144" /></p>
				<p>「Twitter-Tools」の「Setting」をクリックして、Twitterアカウントと、その他投稿について設定します。<br />
				<img class="alignright size-full wp-image-580" title="twiitertoolswp" src="http://splitchin.com/tech/wp-content/uploads/2010/01/twiitertoolswp.png" alt="Twiiter-Tools 設定画面" width="320" height="190" /></p>
				<p>今回は、WordPress→Twitterなので、アカウントの設定と、つぶやき時に、URLの前に表示されるテキスト、Prefixの設定をしてみました。</p>
				<ul>
				<li>Twitter-Tools RedaMe<br />
				<a href="http://alexking.org/projects/wordpress/readme?project=twitter-tools" target="new">http://alexking.org/projects/wordpress/readme?project=twitter-tools</a></li>
				</ul>
				<h3>WordPressから、記事を投稿して、確認。</h3>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/TweetDeck.png"><img class="alignright size-full wp-image-596" title="TweetDeck" src="http://splitchin.com/tech/wp-content/uploads/2010/01/TweetDeck.png" alt="TweetDeck" width="280" height="117" /></a></p>
				<p>Twiiterに、WordPress記事の投稿が、送信されました！</p>
				<p><!-- Amazon --></p>
				<div class="amazon-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4798022012" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/10/twitter-tools-wordpress%e3%81%ae%e8%a8%98%e4%ba%8b%e6%9b%b4%e6%96%b0%e3%82%92%e3%80%81twitter%e3%81%ab%e9%80%9a%e7%9f%a5%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wp.VICUNA　ウィジェット対応</title>
		<link>http://splitchin.com/tech/2009/12/24/wp-vicuna%e3%80%80%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e5%af%be%e5%bf%9c/</link>
		<comments>http://splitchin.com/tech/2009/12/24/wp-vicuna%e3%80%80%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e5%af%be%e5%bf%9c/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 13:15:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=123</guid>
		<description><![CDATA[				このサイトは, wp.VICUNA(http://wp.vicuna.jp/)の,
				WordPressテーマを使用させて頂いてるのですが、
				wp.VICUNAの利点
				
				XHTML1 [...]]]></description>
			<content:encoded><![CDATA[				<p>このサイトは, wp.VICUNA(<a href="http://wp.vicuna.jp/">http://wp.vicuna.jp/</a>)の,<br />
				WordPressテーマを使用させて頂いてるのですが、</p>
				<h3>wp.VICUNAの利点</h3>
				<ul>
				<li>XHTML1.0 Strict DTD準拠</li>
				<li>シンプルなXHTML構造</li>
				<li>表示が軽い</li>
				<li>SEOを高めるサイト内リンク構造</li>
				<li>簡単にカスタマイズ可能な専用スキン</li>
				<li>無料で個人・商用利用可能</li>
				</ul>
				<p>デフォルトだと、ウィジェットに対応してないのが残念です。</p>
				<h3>wp.VICUNA Ext</h3>
				<p><a href="http://ma38su.org/projects/vicuna-ext/">http://ma38su.org/projects/vicuna-ext/</a></p>
				<ul>
				<li>スキンの切り替え</li>
				<li>表記言語の切り替え</li>
				<li>Eye Catchの切り替え</li>
				<li>グローバルナビゲーションの表示切り替え</li>
				<li>各ページ毎のレイアウト設定</li>
				<li>Widgetによるサイドバーのカスタマイズ</li>
				</ul>
				<p>各種、拡張機能つきExtテーマがあるので、<br />
				ウィジェットなどを使用する際は、こちらを使う方が良いかもしれません。</p>
				<h3>wp.VICUNA のウィジェット対応</h3>
				<p>Extに変えるのが一番いいのでしょうが、<br />
				デザインを調整する手間を考えて、応急処置をしてみました。</p>
				<p>■参考サイト</p>
				<ul>
				<li>Widgetizing Themes<br />
				<a href="http://wpdocs.sourceforge.jp/Widgetizing_Themes">http://wpdocs.sourceforge.jp/Widgetizing_Themes</a></li>
				<li>ウィジェット領域を２つ以上つくる<br />
				<a href="http://wpcms.jp/195/">http://wpcms.jp/195/</a></li>
				</ul>
				<h4>functions.php</h4>
				<pre class="brush: php;">
/**
 * Add Widget
 */
if ( function_exists('register_sidebar') )
    register_sidebars(2,array(
        'before_widget' =&gt; &quot;&quot;,
		'after_widget' =&gt; &quot;\n\t\t&lt;/dd&gt;\n&quot;,
		'before_title' =&gt; &quot;\t\t&lt;dt&gt;&quot;,
		'after_title' =&gt; &quot;&lt;/dt&gt;\n\t\t&lt;dd&gt;\n\t\t\t&quot;,
    ));
</pre>
				<p>この場合、<br />
				3カラムレイアウトで、ウィジェット領域が、left, right ２領域、<br />
				&lt;dt&gt;&lt;dd&gt;に対応。</p>
				<h4>sidbar.php</h4>
				<pre class="brush: php;">
	&lt;!-- Widget --&gt;
		&lt;?php if ( function_exists('dynamic_sidebar') ) dynamic_sidebar(); ?&gt;
	&lt;!-- /Widget --&gt;
</pre>
				<p>サイドバー１</p>
				<pre class="brush: php;">
	&lt;!-- Widget --&gt;
		&lt;?php if ( function_exists('dynamic_sidebar') ) dynamic_sidebar(2); ?&gt;
	&lt;!-- /Widget --&gt;
</pre>
				<p>サイドバー２</p>
				<p><iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=FF0066&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4798022012" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2009/12/24/wp-vicuna%e3%80%80%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e5%af%be%e5%bf%9c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ソースコードをWebで表示する SyntaxHighlighter</title>
		<link>http://splitchin.com/tech/2009/12/17/5/</link>
		<comments>http://splitchin.com/tech/2009/12/17/5/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 15:01:06 +0000</pubDate>
		<dc:creator>arakkyee</dc:creator>
				<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=5</guid>
		<description><![CDATA[				プログラムのソースコード（HTML, JavaScript, PHP)など、
				Webで表示するのは、エスケープ処理などあって、面倒でした。
				よく、行番号と、カラー分けでコードを表示しているテック系 [...]]]></description>
			<content:encoded><![CDATA[				<p>プログラムのソースコード（HTML, JavaScript, PHP)など、<br />
				Webで表示するのは、エスケープ処理などあって、面倒でした。</p>
				<p>よく、行番号と、カラー分けでコードを表示しているテック系の<br />
				サイトを見かけるので、ライブラリを探してみました。</p>
				<p>コードをそのまま表示するためのライブラリ、「SyntaxHighlighter」.<br />
				このブログはWordPressベースなので、JSとWordPressプラグインと<br />
				２通りのやり方を試してみました。</p>
				<h3>方法 1.） JavaScript</h3>
				<ul>
				<li>SyntaxHighlighter2.0<br />
				<a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">http://alexgorbatchev.com/wiki/SyntaxHighlighte</a></li>
				<h4>preタグに記述する方法</h4>
				<pre class="brush: xml;">
&lt;pre class=&quot;brush: html&quot;&gt;
&lt;!-- ソースの中身 --&gt;
&lt;ul&gt;
&lt;li&gt;テストHTML&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- ソースの中身 --&gt;
&lt;/pre&gt;
</pre>
				<h4>textareaタグに記述する方法</h4>
				<pre class="brush: xml;">
&lt;textarea name=&quot;code&quot; class=&quot;brush: html&quot; cols=&quot;60&quot; rows=&quot;10&quot;&gt;
&lt;!-- ソースの中身 --&gt;
&lt;ul&gt;
&lt;li&gt;テストHTML&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- /ソースの中身 --&gt;
&lt;/textarea&gt;
</pre>
				<li>導入サンプルHTML<br />
				<a href="http://splitchin.com/sample/javascript/syntaxhighlighter_2/test.html">http://splitchin.com/sample/javascript/syntaxhighlighter_2/test.html</a></li>
				</ul>
				<h3>方法 ２.）WordPress プラグイン</h3>
				<ul>
				<li>プラグインダウンロード<br />
				<a href="http://wordpress.org/extend/plugins/syntaxhighlighter/installation/">http://wordpress.org/extend/plugins/syntaxhighlighter/installation/</a></li>
				</ul>
				<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;"></p>
				<p></span></p>
				<p>［code language=&#8221;&quot;js&quot;&#8221;］・・・［/code］のように書きます。（［　］は半角記号に）</p>
				<pre class="brush: xml;">
&lt;ul&gt;
&lt;li&gt;test&lt;/li&gt;
&lt;/ul&gt;
</pre>
				<p>対応言語</p>
				<table border="0">
				<tbody>
				<tr>
				<th>言語</th>
				<th>エイリアス</th>
				</tr>
				<tr>
				<td>C++</td>
				<td>cpp, c, c++</td>
				</tr>
				<tr>
				<td>C#</td>
				<td>C#, c-sharp, csharp</td>
				</tr>
				<tr>
				<td>CSS</td>
				<td>css</td>
				</tr>
				<tr>
				<td>Delphi</td>
				<td>delphi, pascal</td>
				</tr>
				<tr>
				<td>Java</td>
				<td>java</td>
				</tr>
				<tr>
				<td>Java Script</td>
				<td>js, jscript, javascript</td>
				</tr>
				<tr>
				<td>PHP</td>
				<td>php</td>
				</tr>
				<tr>
				<td>Python</td>
				<td>py, python</td>
				</tr>
				<tr>
				<td>Ruby</td>
				<td>rb, ruby, rails, ror</td>
				</tr>
				<tr>
				<td>Sql</td>
				<td>sql</td>
				</tr>
				<tr>
				<td>VB</td>
				<td>vb, vb.net</td>
				</tr>
				<tr>
				<td>XML/HTML</td>
				<td>xml, html, xhtml, xslt</td>
				</tr>
				</tbody>
				</table>
				<p><!-- Amazon --></p>
				<div>
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=FF0066&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4873113911" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2009/12/17/5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

