{"id":65,"date":"2014-07-10T02:37:22","date_gmt":"2014-07-10T02:37:22","guid":{"rendered":"http:\/\/www.aiti123.com\/?p=65"},"modified":"2014-07-10T02:37:22","modified_gmt":"2014-07-10T02:37:22","slug":"%e3%80%90wordpress%e3%80%91%e6%8f%92%e5%85%a5%e9%ab%98%e4%ba%ae%e4%bb%a3-wp-syntax%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/www.aiti123.com\/?p=65","title":{"rendered":"\u3010WordPress\u3011\u63d2\u5165\u9ad8\u4eae\u4ee3 WP-Syntax\u63d2\u4ef6"},"content":{"rendered":"<p>    WP-CodeBox\u4ee3\u7801\u9ad8\u4eae\u63d2\u4ef6\uff0c\u5b83\u652f\u6301\u591a\u79cd\u8bed\u8a00\u3001\u4ee3\u7801\u4e0b\u8f7d\u3001\u590d\u5236\u5230\u526a\u8d34\u677f\u3001\u4ee3\u7801\u6846\u6536\u653e\u53ca\u540e\u53f0\u9ed8\u8ba4\u5c5e\u6027\u8bbe\u7f6e\u591a\u9879\u529f\u80fd\uff0c\u4f7f\u7528\u8d77\u6765\u4e5f\u6bd4\u8f83\u65b9\u4fbf\u3002<\/p>\n<p>WP-CodeBox\u63d2\u4ef6\u5b89\u88c5\uff1a<\/p>\n<p>    \u4e0b\u8f7dWP-CodeBox\u63d2\u4ef6\uff0c\u5c06\u538b\u7f29\u5305\u89e3\u538b\u540e\uff0c\u628a\u6587\u4ef6\u5939\u4e0a\u4f20\u5230wp-content\/plugins\/\u76ee\u5f55\u4e0b\u3002 \u6216\u8005\u5728\u535a\u5ba2\u540e\u53f0\u76f4\u63a5\u6dfb\u52a0\u65b0\u63d2\u4ef6\uff0c\u641c\u201cWP-CodeBox\u201d\uff0c\u5728\u7ebf\u5b89\u88c5\u5373\u53ef\u3002<br \/>\n    \u767b\u5f55WordPress\u7ba1\u7406\u540e\u53f0\uff0c\u70b9\u51fb\u201cPlugins\u201d\u627e\u5230\u4e0a\u4f20\u7684\u63d2\u4ef6\uff0c\u6fc0\u6d3b\u8be5\u63d2\u4ef6\u3002<br \/>\n    \u63d2\u4ef6\u6fc0\u6d3b\u540e\uff0c\u5728\u201cSetting\u201d&#8211;>\u201cWP-CodeBox\u201c\u4e2d\u8bbe\u7f6e\u76f8\u5173\u4fe1\u606f<\/p>\n<p> wordpress-wp-codebox1<\/p>\n<p>  \u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<p>\u5728\u63d2\u5165\u4ee3\u7801\u524d\uff0c\u5c06wordpress \u7f16\u8f91\u5668\u5207\u6362\u4e3a\u201cHTML\u7f16\u8f91\u201d\u6a21\u5f0f\uff01<\/p>\n<p>\u5728\u56fe\u4e2d\u57fa\u672c\u4e0a\u5bf9\u63d2\u4ef6\u7684\u76f8\u5173\u529f\u80fd\u90fd\u8fdb\u884c\u4e86\u8bf4\u660e\uff0c\u5728\u9875\u9762\u4e2d\uff0c\u5176\u5b9e\u4f60\u4e5f\u4e0d\u7528\u8fdb\u884c\u4efb\u4f55\u8bbe\u7f6e\uff0c\u4fdd\u6301\u9ed8\u8ba4\u5373\u53ef\uff0c\u5b89\u88c5\u6210\u529f\u540e\uff0c\u63a5\u4e0b\u6765\u5c31\u662f\u4f7f\u7528\u63d2\u4ef6\u4e86\uff0c\u4f7f\u7528\u4e4b\u524d\u5148\u6765\u4ecb\u7ecd\u4e0bWP-CodeBox\u63d2\u4ef6\u7684\u76f8\u5173\u8bed\u6cd5\uff1a<\/p>\n<p> WP-Syntax \u4ee3\u7801\u4e66\u5199\u683c\u5f0f \uff1a<\/p>\n<pre lang=\"html\" line=\"1\" escaped=\"true\" >\n<pre lang=\"LANGUAGE\" line=\"1\" escaped=\"true\" >\n\/\/\u8fd9\u91cc\u6dfb\u52a0\u4ee3\u7801\u2026\u2026     < \/pre> <\/pre>\n<p>\u89e3\u91ca\uff1a<\/p>\n<p> lang=\"html\"\u8868\u793a\u4ee3\u7801\u8bed\u8a00\u4e3ahtml\uff0c\u8bf7\u6839\u636e\u81ea\u5df1\u9700\u8981\u4fee\u6539\uff1b\u4ee3\u7801\u7684\u8bed\u8a00,\u5982ASP\u3001PHP\u3001Java\u7b49<\/p>\n<p> line=\"1\" \u8868\u793a\u663e\u793a\u884c\u53f7\uff0c\u5982\u679c\u4e0d\u9700\u8981\uff0c\u53bb\u6389\u5373\u53ef line=\"0\" \uff1b<\/p>\n<p> escaped=\"true\" \u662f\u4e3a\u4e86\u9632\u6b62\u4ee3\u7801\u8f6c\u4e49\uff0c\u5982\u679c\u4e0d\u9700\u8981\uff0c\u53bb\u6389\u5373\u53ef\u3002<\/p>\n<p>    \u6ce8\u610f\uff1a\u5728wordpress\u540e\u53f0\u4f7f\u7528 WP-Syntax \u7b49\u4ee3\u7801\u9ad8\u4eae\u63d2\u4ef6\uff0c\u9700\u8981\u5728html\u6a21\u5f0f\u4e0b\u6dfb\u52a0\u4ee3\u7801\uff0c\u4e0d\u8981\u968f\u610f\u5207\u6362\u5230\u53ef\u89c6\u5316\u6a21\u5f0f\uff0c\u5426\u5219\u4ee3\u7801\u5c31\u5bb9\u6613\u8f6c\u4e49\uff01\uff01<\/p>\n<p>\u6f14\u793a\uff1a<\/p>\n<pre lang=\"php\" line=\"1\" escaped=\"true\" >  \n\n<div id=\"foo\">\n        <?php\n          function foo() {\n            echo \"Hello World!\\n\";\n          }\n          for ($i = 0; $i < 10 $i++) {\n            foo();\n          }\n        ?>\n        <\/div>\n\n<\/pre>\n<p> \u4ee3\u7801css\u4f18\u5316\uff1a<\/p>\n<p>\u5982\u679c\u4f60\u9700\u8981\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u4ee3\u7801\uff0c\u8986\u76d6\u8be5\u63d2\u4ef6\u7684 wp-syntax\/wp-syntax.css \u7684\u4ee3\u7801<\/p>\n<pre lang=\"css\" line=\"1\" escaped=\"true\" >\n\n.wp_syntax {\n        color:#100;\n        background-color:#f9f9f9;\n        border:1px solid #EBEBEB;\n        margin:0 0 1.5em 0;\n        overflow:auto;\n}\n.wp_syntax {\n        overflow-x:auto;\n        overflow-y:hidden;\n        padding-bottom:expression(this.scrollWidth > this.offsetWidth ? 15:0);\n        width:99%;\n}\n.wp_syntax table {\n        border:none;\n        border-collapse:collapse;\n        margin:0;\n        padding:0;\n        width:100% !important\n}\n.wp_syntax caption {\n        padding:2px;\n        width:100%;\n        background-color:#def;\n        text-align:left;\n        font-family:Monaco;\n        font-size:13px;\n        line-height:20px;\n}\n.wp_syntax caption a {\n        color:#1982d1;\n        text-align:left;\n        font-family:Monaco;\n        font-size:13px;\n        line-height:20px;\n        text-decoration:none;\n}\n.wp_syntax caption a:hover {\n        color:#1982d1;\n        text-decoration:underline;\n}\n.wp_syntax div,.wp_syntax td {\n        border:none;\n        text-align:left;\n        padding:0;\n        vertical-align:top;\n}\n.wp_syntax td.code {\n        background:none;\n        line-height:normal;\n        white-space:normal;\n        padding-left:10px;\n}\n.wp_syntax pre {\n        background:transparent;\n        margin:0;\n        padding:0;\n        width:auto;\n        float:none;\n        clear:none;\n        overflow:visible;\n        font-family:Monaco;\n        font-size:13px;\n        line-height:20px;\n        white-space:pre;\n}\n.wp_syntax td.line_numbers pre {\n        border-right:3px solid #6CE26C;\n        background-color:#E7E5DC;\n        color:gray;\n        width:20px;\n        padding:0 5px;\n        text-align:right;\n}\n\n <\/pre>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u5c06\u4e0a\u9762\u7684\u4ee3\u7801\u6dfb\u52a0\u5230\u4f60\u4e3b\u9898\u7684 style.css \u6587\u4ef6\u4e2d\uff0c\u7136\u540e\u5728 functions.php \u4e2d\u6dfb\u52a0\u4e0b\u9762\u7684\u4ee3\u7801\uff0c\u53d6\u6d88 WP-Syntax \u52a0\u8f7d\u7684css\u6587\u4ef6\uff0c\u8fd9\u6837\uff0c\u5373\u4f7f\u4f60\u4ee5\u540e\u5347\u7ea7\u4e86\u63d2\u4ef6\uff0c\u4e5f\u80fd\u4fdd\u7559\u4f60\u81ea\u5df1\u7684\u6837\u5f0f\u3002<\/p>\n<pre lang=\"css\" line=\"1\" escaped=\"true\" >\n\n\nif ( has_action( 'wp_print_styles', 'wp_syntax_style' ) ) {\nremove_action( 'wp_print_styles', 'wp_syntax_style' );\n};\n\n <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WP-CodeBox\u4ee3\u7801\u9ad8\u4eae\u63d2\u4ef6\uff0c\u5b83\u652f\u6301\u591a\u79cd\u8bed\u8a00\u3001\u4ee3\u7801\u4e0b\u8f7d\u3001\u590d\u5236\u5230\u526a\u8d34\u677f\u3001\u4ee3\u7801\u6846\u6536\u653e\u53ca\u540e\u53f0\u9ed8\u8ba4\u5c5e\u6027\u8bbe\u7f6e\u591a\u9879\u529f\u80fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[126,333,336,338,898,899],"_links":{"self":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts\/65"}],"collection":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65"}],"version-history":[{"count":0,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}