{"id":266,"date":"2010-12-05T01:33:16","date_gmt":"2010-12-04T16:33:16","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2010\/12\/05\/wordpress\/"},"modified":"2010-12-05T01:33:16","modified_gmt":"2010-12-04T16:33:16","slug":"wordpress","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2010\/12\/05\/wordpress\/","title":{"rendered":"WORDPRESS \u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u6574\u5f62\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2010\/12\/07\/wordpress_chrome\">https:\/\/www.typea.info\/blog\/index.php\/2010\/12\/07\/wordpress_chrome<\/a>\u30d6\u30ed\u30b0\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u5834\u5408\u3001\u304d\u308c\u3044\u306b\u8868\u793a\u3055\u305b\u3089\u308c\u308b\u3068\u3046\u308c\u3057\u3044\u3002 <\/p>\n<p>Syntax Highlighter \u304c\u3001\u884c\u756a\u53f7\u3082\u8868\u793a\u3055\u308c\u305f\u308a\u3001\u898b\u305f\u76ee\u306f\u304d\u308c\u3044\u3067\u3088\u3055\u3052\u306a\u306e\u3060\u304c\u3001\u5bfe\u8c61\u3068\u306a\u308b\u8a00\u8a9e\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002<\/p>\n<p> google-code-prettify \u306f\u3001Syntax Highlighter \u306b\u6bd4\u3079\u308b\u3068\u63a7\u3048\u3081\u3067\u3001\u30b3\u30fc\u30c9\u306e\u8272\u5206\u3051\u7a0b\u5ea6\u3060\u304c\u3001\u3044\u3061\u3044\u3061\u5bfe\u8c61\u8a00\u8a9e\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u7121\u304f\u3001CSS \u30af\u30e9\u30b9\u306b prettyprint \u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u697d\u3067\u3088\u3044\u3002 <\/p>\n<h2>&nbsp;<\/h2>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p> \u4ee5\u4e0b\u306e\u624b\u9806\u3067\u3001WordPress \u306b\u3001<a href=\"http:\/\/www.deanlee.cn\/wordpress\/google-code-prettify-for-wordpress\/\">google-code-prettify \u306e\u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\u3092\u5c0e\u5165\u3057\u3066\u307f\u308b\u3002   <\/p>\n<ol>\n<li>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306eURL\u3092\u6307\u5b9a\u3057\u3001wget \u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 <\/li>\n<li>\u89e3\u51cd <\/li>\n<li>WordPress \u30c7\u30a3\u30ec\u30af\u30c8\u30ea(\u4f8b\u3067\u306fblog) \u306e\/wp-content\/plugins\/ \u306b\u30b3\u30d4\u30fc <\/li>\n<li>\u7ba1\u7406\u753b\u9762\u304b\u3089\u6709\u52b9\u5316 <\/li>\n<\/ol>\n<pre class=\"prettyprint linenums\"># wget http:\/\/www.deanlee.cn\/downloads\/google_code_prettify_v1.1.zip\r\n# unzip google_code_prettify_v1.1.zip\r\n# mv google_code_prettify \/var\/www\/html\/blog\/wp-content\/plugins\/<\/pre>\n<h2><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WORDPRESS_E44\/wordpress_plugin01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"wordpress_plugin01\" border=\"0\" alt=\"wordpress_plugin01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WORDPRESS_E44\/wordpress_plugin01_thumb.jpg\" width=\"390\" height=\"168\" \/><\/a> <\/h2>\n<h2>\u4f7f\u7528\u6cd5<\/h2>\n<p>\u5b9f\u969b\u306b\u4f7f\u3046\u306b\u306f\u3001\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u30bd\u30fc\u30b9\u3092 pre \u30bf\u30b0\u3067\u56f2\u307f\u3001class \u5c5e\u6027\u306b\u3001prettyprint \u3092\u6307\u5b9a\u3059\u308b\u3002 <\/p>\n<pre class=\"prettyprint linenums\">&lt;pre class=\"prettyprint linenums\"&gt; \r\n    \u3053\u3053\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u3002 \r\n&lt;\/pre&gt; <\/pre>\n<p>\u307e\u305f\u306f\u3001<\/p>\n<pre class=\"prettyprint linenums\">&lt;code class=\"prettyprint\"&gt; \r\n    \u3053\u3053\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u3002 \r\n&lt;\/code&gt; <\/pre>\n<p>\u8a66\u3057\u306b\u3001\u30bd\u30fc\u30b9\u3092\u8cbc\u3063\u3066\u307f\u308b\u3002 <\/p>\n<pre class=\"prettyprint linenums\">package info.typea;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\nimport android.app.Activity;\r\nimport android.content.Context;\r\nimport android.graphics.Canvas;\r\nimport android.graphics.Color;\r\nimport android.graphics.Paint;\r\nimport android.graphics.Point;\r\nimport android.os.Bundle;\r\nimport android.util.Log;\r\nimport android.view.MotionEvent;\r\nimport android.view.View;\r\n\r\npublic class TouchActivity extends Activity {\r\n    \/** Called when the activity is first created. *\/\r\n    @Override\r\n    public void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        TouchView view = new TouchView(this);\r\n        setContentView(view);\r\n    }\r\n}\r\n\r\nclass TouchView extends View {\r\n    private static final String TAG = \"Touch\";\r\n    private List\r\n points = new ArrayList\r\n();\r\n\r\n    public TouchView(Context context) {\r\n        super(context);\r\n        setFocusable(true);\r\n        Log.i(TAG ,\"View Constructed.\");\r\n    }\r\n\r\n    @Override\r\n    public boolean onTouchEvent(MotionEvent event) {\r\n        Point point = new Point();\r\n\r\n        point.x = (int) event.getX();\r\n        point.y = (int) event.getY();\r\n        points.add(point);\r\n\r\n        this.invalidate();\r\n\r\n        return true;\r\n    }\r\n\r\n    @Override\r\n    protected void onDraw(Canvas canvas) {a\r\n        canvas.drawColor(Color.WHITE);\r\n        Paint paint = new Paint();\r\n        paint.setColor(Color.BLACK);\r\n        paint.setStyle(Paint.Style.STROKE);\r\n\r\n        for (Point point : points) {\r\n            \/\/Log.i(TAG,String.format(\"x=%d, y=%d\", point.x, point.y));\r\n            canvas.drawCircle(point.x, point.y, 10, paint);\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001 <\/p>\n<ul>\n<li>HTML\u306e\u7279\u6b8a\u6587\u5b57\u3001\u7279\u306b&lt;\u3001&gt; \u306f\u3001pre \u30bf\u30b0\u306e\u4e2d\u3067\u3082 &amp;lt;\u3001&amp;gt; \u7b49 \u306b\u30a8\u30b9\u30b1\u30fc\u30d7\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b <\/li>\n<li>IE\u3067\u306f\u307e\u3068\u3082\u306b\u52d5\u304b\u306a\u3044(\u6539\u884c\u304c\u7121\u304f\u306a\u3063\u3066\u3057\u307e\u3046) <\/li>\n<li>HTML\u30bf\u30b0(XML)\u3092 pre \u3067\u5229\u7528\u3067\u304d\u306a\u3044(?) \u4eca\u56de\u3001\u5b9f\u969b\u306b\u30bf\u30b0\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u3002code \u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082 <\/li>\n<\/ul>\n<p>Movable Type \u3068\u3001FreeStyleWiki \u3092\u4f7f\u3063\u305f\u81ea\u5206\u306e\u30b5\u30a4\u30c8\u3067\u306f\u3001IE7 \u672a\u6e80\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u306f\u9069\u7528\u3057\u306a\u3044\u3088\u3046\u306b\u3001\u307e\u305fIE7\u4e92\u63db\u30e2\u30fc\u30c9\u3067\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u3001script \u30bf\u30b0\u306e\u4e2d\u306b\u3001jQuery \u3092\u5229\u7528\u3057\u3066\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u884c\u3063\u3066\u3044\u308b\u3002 <\/p>\n<pre class=\"prettyprint linenums\">    $(document).ready(function(){\r\n        if ($.browser.msie &amp;&amp; $.browser.version &lt; 7) {\r\n            \/\/ NOP\r\n        } else {\r\n            var meta = $(\"head\").add(\"meta\");\r\n            meta.attr(\"http-equiv\",\"X-UA-Compatible\");\r\n            meta.attr(\"content\",\"IE=EmulateIE7\");\r\n\r\n            prettyPrint();\r\n        }\r\n    });<\/pre>\n<p>WordPress \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306f\u3069\u3046\u5bfe\u51e6\u3057\u3088\u3046\u304b\u3057\u3089\u3002 <\/p>\n<hr>\n<p><b>\u8ffd\u8a18&nbsp;<\/b><\/p>\n<p>Chrome \u3067\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u304c\u52b9\u304b\u306a\u3044\u5834\u5408<\/p>\n<p>\n  <br \/><iframe style=\"width: 120px; height: 240px\" marginheight=\"0\" src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea09-22&amp;o=9&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=1X69VDGQCMF7Z30FM082&amp;asins=4883377245\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><iframe style=\"width: 120px; height: 240px\" marginheight=\"0\" src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea09-22&amp;o=9&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=1X69VDGQCMF7Z30FM082&amp;asins=4839936072\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.typea.info\/blog\/index.php\/2010\/12\/07\/wordpress_chrome\u30d6\u30ed\u30b0\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u5834\u5408\u3001\u304d\u308c\u3044\u306b\u8868\u793a\u3055\u305b\u3089\u308c\u308b\u3068\u3046\u308c\u3057\u3044\u3002 Syntax Hi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[42],"tags":[],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=266"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/266\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}