HTMLタグ、CODEやPREなどを使う場合に、プログラム言語ごとに色分け表示してくれて、さらに行番号を付加してくれる、便利なWordpressプラグインiG::Syntax Hiliterを使ってみるテスト。
因みに、日本語版は、MMRT daily lifeさんが配布している。
iG::Syntax Hiliter 日本語版
使ってみるテスト:
-
/***block comments
-
**********************************/
-
-
var stringWithUrl1 = "http://2chi.fourier.jp/";
-
var stringWithUrl2 = 'http://2chi.fourier.jp/newrss';
-
-
// callback for the match sorting
-
dpSyntaxHighlighter.prototype.SortCallback = function(m1, m2)
-
{
-
// sort matches by index first
-
if(m1.index <m2.index)
-
return -1;
-
else (m1.index> m2.index)
-
return 1;
-
}
-
-
function parseOutputBuffer($buf) {
-
-
// cleaning out the code.
-
if($portal_small_code && !$portal_gzcompress) {
-
}
-
}
-
html,body{margin:0;padding:0}
-
body{font: 76% arial,sans-serif;text-align:center}
-
p{margin:0 10px 10px}
-
#navigation{background:#B9CAFF}
-
#extra{background:#FF8539}
-
#footer{background: #333;color: #FFF}
-
-
#container{width:700px;margin:0 auto}
-
#content{float:right;width:500px}
(google maps api + google ajax search api)
Post a Comment