これは、wordpressのテンプレート用style.cssの初めの部分です。
< ?php get_header(); ?>
<!--index.php-->
<div id="container">
<div id="main">
<div id="main_inner">
< ?php if (have_posts()) : ?>
<!--loop start-->
< ?php while (have_posts()) : the_post(); ?>
<div id="article">
<!--post title-->
<div id="article_title">
<h1><span></span>
< ?php the_title(); ?>
</h1>
</div><!--end of div#article_title-->
</div><!--end of div#article-->
<!--end of one post-->
< ?php endwhile; ?>
<!--pagenavi-->
< ?php pagenavi_multiple(); ?>
<!--index.php end-->
<div id="sidebar">
<div id="sidebar_inner">
< ?php get_sidebar(); ?>
</div><!--end of div#sidebar_inner-->
</div><!--end of div#sidebar-->
</div><!--end of div#container-->
< ?php get_footer(); ?>
</div></div>
これは次のサンプルです。
CodePress.languages = {
csharp : 'C#',
css : 'CSS',
generic : 'Generic',
html : 'HTML',
java : 'Java',
javascript : 'JavaScript',
perl : 'Perl',
ruby : 'Ruby',
php : 'PHP',
text : 'Text',
sql : 'SQL', vbscript : 'VBScript'
}
CodePress.run = function() {
s = document.getElementsByTagName('script');
for(var i=0,n=s.length;i<n ;i++) {
if(s[i].src.match('codepress.js')) {
CodePress.path = s[i].src.replace('codepress.js','');
} }
t = document.getElementsByTagName('textarea');
for(var i=0,n=t.length;i<n;i++) {
if(t[i].className.match('codepress')) {
id = t[i].id;
t[i].id = id+'_cp';
eval(id+' = new CodePress(t[i])'); t[i].parentNode.insertBefore(eval(id), t[i]);
}
}
}
これはHTMLのサンプルです。
< !DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- hajime002 -->
<html lang="ja">
<head>
<meta http-equiv="adalign" content="right">
</meta><meta http-equiv="adimage" content="200">
</meta><meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
</meta><meta name="description" content="売れない、人が来ないホームページにならない為の、インターネットの知識とブログネタ">
</meta><meta name="keywords" content=",">
<link rel="stylesheet" type="text/css" href="http://e0166.blog89.fc2.com/template/netatyo/style.css" media="screen,tv" title="デフォルト" charset="EUC-JP">
</link><link rel="alternate" type="application/rss+xml" href="http://e0166.blog89.fc2.com/?xml" title="RSS">
</link><link rel="top" href="http://e0166.blog89.fc2.com/" title="トップ">
</link><link rel="start" href="http://e0166.blog89.fc2.com/" title="最初の記事">
</link><link rel="next" href="http://e0166.blog89.fc2.com/blog-entry-161.html" title="Ajaxで無ければ表現できないサイトを作りたかった『BnetJapan』"></link><link rel="prev" href="http://e0166.blog89.fc2.com/blog-entry-141.html" title="素人とチャットでデートとか出来る2ショットチャットの裏話">
</link></meta></head>
<body>
<!--アクセス解析タグ ここから-->
<script language="JavaScript" src="http://analyzer2.fc2.com/analyzer.js?uid=882109"></script><noscript><div align="right"><a href="http://analyzer.fc2.com/" target="_blank">アクセス解析</a></div></noscript>
<!--アクセス解析タグ ここまで-->
<!--
///【container】はサイト全体を包含するブロック▼▼▼
-->
<div id="container"><!-- container -->
<table align="center" style="margin:0px auto;"><tr><td><p>売れない、人が来ないホームページにならない為の、インターネットの知識とブログネタ</p></td></tr>
<tr><td height="30" bgcolor="#CC3300"width="900px"><script type="text/javascript"><!--
google_ad_client = "pub-4263462852094803";
//728x15, 作成済み 08/01/27
google_ad_slot = "7034912770";
google_ad_width = 728;
google_ad_height = 15;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td></tr></table>
<!-- 記事タイトル部分 -->
<h2 class="entry-header"><a href="http://e0166.blog89.fc2.com/blog-entry-159.html" title="PHPで動いている高度なオープンソースWebアプリケーション厳選15本まとめ"><font color="#333333">PHPで動いている高度なオープンソースWebアプリケーション厳選15本まとめ</font></a></h2>
<script type="text/javascript"><!--
google_ad_client = "pub-4263462852094803";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-07-10: netatyou_blog_head
google_ad_channel = "3711705843";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0099CC";
google_color_text = "000000";
google_color_url = "000000";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- 記事本文部分 -->
<div class="entry-body">
</div></div></body></html>