{"id":516,"date":"2012-01-12T13:53:35","date_gmt":"2012-01-12T04:53:35","guid":{"rendered":"http:\/\/nanoappli.com\/blog\/?p=516"},"modified":"2012-01-12T13:53:35","modified_gmt":"2012-01-12T04:53:35","slug":"wp_syntax%e3%81%a8brbrbr%e3%82%92%e4%bd%b5%e7%94%a8%e6%99%82%e3%80%81%e4%bd%99%e8%a8%88%e3%81%aa%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%81%8c%e5%85%a5%e3%82%8b%e3%81%ae%e3%82%92%e6%8a%91%e5%88%b6","status":"publish","type":"post","link":"http:\/\/nanoappli.com\/blog\/archives\/516","title":{"rendered":"WP_Syntax\u3068brBrbr\u3092\u4f75\u7528\u6642\u3001\u4f59\u8a08\u306a\u30b9\u30da\u30fc\u30b9\u304c\u5165\u308b\u306e\u3092\u6291\u5236"},"content":{"rendered":"<p>\n<a href=\"http:\/\/nanoappli.com\/blog\/archives\/482\">\u524d\u56de\u3001brBrbr\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f<\/a>\u306e\u3067\u3059\u304c\u3001\u554f\u984c\u7121\u3055\u305d\u3046\u306a\u3046\u3067\u3057\u305f\u3002<br \/>\n\u3067\u3059\u306e\u3067\u3001\u4eca\u56de\u306fWP_Syntax\u5074\u306e\u30bd\u30fc\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<br \/>\n<br \/>\n\u307e\u305a\u3001brBrbr\u306e\u6642\u3068\u540c\u69d8\u306b\u30bd\u30fc\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002WP_Syntax\u306f\u3001\u51687\u30d5\u30a1\u30a4\u30eb\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u308c\u305e\u308c\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u3056\u3063\u3068\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u30e1\u30a4\u30f3\u306fwp-syntax.php\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_05.jpg\"><img loading=\"lazy\" src=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_05.jpg\" alt=\"\" title=\"20120112_05\" width=\"388\" height=\"239\" class=\"alignnone size-full wp-image-521\" \/><\/a><br \/>\n<br \/>\n<br \/>\n\u3067\u3001wp-syntax.php\u3067\u3059\u304c\u3001brBrbr\u3068\u9055\u3063\u3066\u3053\u3063\u3061\u306f200\u884c\u3050\u3089\u3044\u30bd\u30fc\u30b9\u304c\u6709\u308a\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_06.jpg\"><img loading=\"lazy\" src=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_06.jpg\" alt=\"\" title=\"20120112_06\" width=\"462\" height=\"365\" class=\"alignnone size-full wp-image-522\" srcset=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_06.jpg 462w, http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_06-379x300.jpg 379w\" sizes=\"(max-width: 462px) 100vw, 462px\" \/><\/a><br \/>\n<br \/>\n<br \/>\n<br \/>\n200\u884c\u3050\u3089\u3044\u306a\u3089\u982d\u304b\u3089\u8aad\u3093\u3067\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u9762\u5012\u306a\u306e\u3067\u3042\u305f\u308a\u3092\u3064\u3051\u307e\u3059\u3002<br \/>\npre\u30bf\u30b0\u306e\u524d\u5f8c\u306b\u6539\u884c\u304c2\u3065\u3064\u4ed8\u304f\u3068\u3044\u3046\u72b6\u6cc1\u306f\u65e2\u306b\u628a\u63e1\u6e08\u307f\u306a\u306e\u3067\u3001&#8221;\\n\\n&#8221;\u3067\u691c\u7d22\u3059\u308b\u3068\u305d\u308c\u3063\u307d\u3044\u306e\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\uff01\uff01<br \/>\n<pre lang=\"php\">\nfunction wp_syntax_substitute(&$match)\n{\n    global $wp_syntax_token, $wp_syntax_matches;\n\n    $i = count($wp_syntax_matches);\n    $wp_syntax_matches[$i] = $match;\n\n    return \"\\n\\n<p>\" . $wp_syntax_token . sprintf(\"%03d\", $i) . \"<\/p>\\n\\n\";\n}\n<\/pre>\n<br \/>\n\u307e\u3055\u306b\u3001\u524d\u5f8c\u306b\u6539\u884c\u30922\u3064\u3065\u3064\u4ed8\u4e0e\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<br \/>\n<br \/>\n<br \/>\n\u3053\u308c\u3092\u3001\u3092\u8a66\u3057\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u8a66\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n<pre lang=\"php\">\n    return \"\\n\\n<p>\" . $wp_syntax_token . sprintf(\"%03d\", $i) . \"<\/p>\\n\\n\";\n\t\u2193\n    return \"st<p>\" . $wp_syntax_token . sprintf(\"%03d\", $i) . \"<\/p>ed\";\n<\/pre>\n\u51fa\u529b\u7d50\u679c\u3092\u6bd4\u3079\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u671f\u5f85\u3057\u305f\u611f\u3058\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n(\u753b\u50cf\u4e2d\u306e start \/wait\u306e\u7b87\u6240\u304c\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u306e\u51e6\u7406\u5bfe\u8c61\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002)<br \/>\n<br \/>\n<a href=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_03.jpg\"><img loading=\"lazy\" src=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_03.jpg\" alt=\"\" title=\"20120112_03\" width=\"372\" height=\"153\" class=\"alignnone size-full wp-image-519\" \/><\/a><br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u2193<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_04.jpg\"><img loading=\"lazy\" src=\"http:\/\/nanoappli.com\/blog\/wp-content\/uploads\/20120112_04.jpg\" alt=\"\" title=\"20120112_04\" width=\"345\" height=\"106\" class=\"alignnone size-full wp-image-520\" \/><\/a><br \/>\n<br \/>\n<br \/>\n<br \/>\n<h3>\u7d50\u5c40\u3001\u4fee\u6b63\u7b87\u6240\u306f&#8230;<\/h3>\n\u3068\u3044\u3046\u308f\u3051\u3067&#8230;<br \/>\nWP_Syntax\u3068brBrbr\u4f75\u7528\u6642\u306b\u3001\u4f59\u8a08\u306a\u30b9\u30da\u30fc\u30b9\u304c\u5165\u308b\u306e\u3092\u9632\u3050\u70ba\u306e\u30d1\u30c3\u30c1\u3067\u3059\u3002<br \/>\n<br \/>\n<br \/>\nwp_syntax\u30d7\u30e9\u30b0\u30a4\u30f3\u5185\u306e\u3001wp_syntax_substitute()\u30e1\u30bd\u30c3\u30c9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<br \/>\n(\u6700\u5f8c\u306e1\u884c\u306ereturn\u3092\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u3059)<br \/>\n<br \/>\n<pre lang=\"php\">\nfunction wp_syntax_substitute(&$match)\n{\n    global $wp_syntax_token, $wp_syntax_matches;\n\n    $i = count($wp_syntax_matches);\n    $wp_syntax_matches[$i] = $match;\n\n    \/* 2012\/01: brBrbr\u30d7\u30e9\u30b0\u30a4\u30f3\u4f75\u7528\u6642\u306e\u4f59\u8a08\u306a\u7a7a\u884c\u3092\u53d6\u308a\u9664\u304f *\/\n    \/* return \"\\n\\n<p>\" . $wp_syntax_token . sprintf(\"%03d\", $i) . \"<\/p>\\n\\n\"; *\/\n    return \"<p>\" . $wp_syntax_token . sprintf(\"%03d\", $i) . \"<\/p>\";\n}\n<\/pre>\n<br \/>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u3001brBrbr\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u554f\u984c\u7121\u3055\u305d\u3046\u306a\u3046\u3067\u3057\u305f\u3002 \u3067\u3059\u306e\u3067\u3001\u4eca\u56de\u306fWP_Syntax\u5074\u306e\u30bd\u30fc\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002 \u307e\u305a\u3001brBrbr\u306e\u6642\u3068\u540c\u69d8\u306b\u30bd\u30fc\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002WP_Syntax\u306f\u3001\u51687\u30d5\u30a1\u30a4\u30eb\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u305d\u308c\u305e\u308c\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u3056\u3063\u3068\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u30e1\u30a4\u30f3\u306fwp-syntax.php\u306e\u3088\u3046\u3067\u3059\u3002 \u3067\u3001wp-syntax.php\u3067\u3059\u304c\u3001brBrbr\u3068\u9055\u3063\u3066\u3053\u3063\u3061\u306f200\u884c\u3050\u3089\u3044\u30bd\u30fc\u30b9\u304c\u6709\u308a\u307e\u3059\u3002 200\u884c\u3050\u3089\u3044\u306a\u3089\u982d\u304b\u3089\u8aad\u3093\u3067\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u9762\u5012\u306a\u306e\u3067\u3042\u305f\u308a\u3092\u3064\u3051\u307e\u3059\u3002 pre\u30bf\u30b0\u306e\u524d\u5f8c\u306b\u6539\u884c\u304c2\u3065\u3064\u4ed8\u304f\u3068\u3044\u3046\u72b6\u6cc1\u306f\u65e2\u306b\u628a\u63e1\u6e08\u307f\u306a\u306e\u3067\u3001&#038;#822\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":294,"url":"http:\/\/nanoappli.com\/blog\/archives\/294","url_meta":{"origin":516,"position":0},"title":"doxygen\u3092\u4f7f\u7528\u3057\u3066C#\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b(\u305d\u306e1)","date":"2012\u5e741\u67088\u65e5","format":false,"excerpt":"C#\u3067\u306f\u3001\u901a\u5e38\u306e\"\/* *\/\"\u3084 \"\/\/\"\u306b\u3088\u308b\u30b3\u30e1\u30f3\u30c8\u306b\u52a0\u3048\u3066\u3001\"\/\/\/\"\u3067\u59cb\u307e\u308b\u30b3\u30e1\u30f3\u30c8\u3067\u3001XM\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/20120107_11.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":342,"url":"http:\/\/nanoappli.com\/blog\/archives\/342","url_meta":{"origin":516,"position":1},"title":"doxygen\u3092\u4f7f\u7528\u3057\u3066C#\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b(\u305d\u306e2)","date":"2012\u5e741\u67089\u65e5","format":false,"excerpt":"\u524d\u56de\u306e\u8a18\u4e8b\u3067\u3001C#\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u81ea\u52d5\u751f\u6210\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u4eca\u56de\u306f\u3001\u30bd\u30fc\u30b9\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/20120108_17.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2606,"url":"http:\/\/nanoappli.com\/blog\/archives\/2606","url_meta":{"origin":516,"position":2},"title":"\u79c0\u4e38\u306eZen-Coding\u30de\u30af\u30ed\u3067\u3001a\u30bf\u30b0\uff65h\u30bf\u30b0\u306e\u5f8c\u308d\u306b\u6539\u884c\u3092\u5165\u308c\u3055\u305b\u306a\u3044","date":"2012\u5e745\u670819\u65e5","format":false,"excerpt":"Windows\u5411\u3051\u306e\u5b9a\u756a\u30a8\u30c7\u30a3\u30bf\u3068\u3057\u3066\u6709\u540d\u306a\u79c0\u4e38\u30a8\u30c7\u30a3\u30bf\u3067\u3059\u304c\u3001HTML\u3092\u9ad8\u901f\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u70ba\u306e\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/05\/20120519_03.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3004,"url":"http:\/\/nanoappli.com\/blog\/archives\/3004","url_meta":{"origin":516,"position":3},"title":"[Research Artisan]\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092RSS\u914d\u4fe1\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3","date":"2012\u5e745\u670830\u65e5","format":false,"excerpt":"\u30d5\u30ea\u30fc\u306ePHP\u88fd\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u89e3\u6790\u30bd\u30d5\u30c8\u3068\u3057\u3066\u6709\u540d\u306aReserch Artisan Lite\u3067\u3059\u304c\u3001\u53d6\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/05\/20120530_01-500x217.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5090,"url":"http:\/\/nanoappli.com\/blog\/archives\/5090","url_meta":{"origin":516,"position":4},"title":"Visual Studio\u3067\u5b9f\u884c\u53ef\u80fd\u306a\u03bcItron\u306e\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b","date":"2012\u5e7410\u670820\u65e5","format":false,"excerpt":"\u56fd\u5185\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u7d44\u307f\u8fbc\u307f\u5411\u3051\u306eOS\u3068\u3057\u3066\u6709\u540d\u306a\u3082\u306e\u306b\u3001\u03bcItron\u3068\u3044\u3046\u3082\u306e\u304c\u6709\u308a\u307e\u3059\u3002 \u03bcIt\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/10\/20121020_03.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":482,"url":"http:\/\/nanoappli.com\/blog\/archives\/482","url_meta":{"origin":516,"position":5},"title":"WordPress\u306ebrBrbr\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u632f\u308b\u821e\u3044\u3092\u78ba\u8a8d\u3059\u308b","date":"2012\u5e741\u670811\u65e5","format":false,"excerpt":"\u672cblog\u306fWordPress\u3092\u4f7f\u7528\u3057\u3066\u69cb\u7bc9\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u4e2d\u3067WP-Syntax\u3068brBrb\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/516"}],"collection":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/comments?post=516"}],"version-history":[{"count":8,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"predecessor-version":[{"id":528,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/516\/revisions\/528"}],"wp:attachment":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/tags?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}