{"id":402,"date":"2022-02-17T17:10:57","date_gmt":"2022-02-17T08:10:57","guid":{"rendered":"https:\/\/engineering.webstudio168.jp\/?p=402"},"modified":"2022-03-18T11:33:24","modified_gmt":"2022-03-18T02:33:24","slug":"highlighting-code-block-dart","status":"publish","type":"post","link":"https:\/\/engineering.webstudio168.jp\/blog\/highlighting-code-block-dart\/","title":{"rendered":"\u300cHighlighting Code Block\u300d\u306bDart\u8a00\u8a9e\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_87_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/highlighting-code-block-dart\/#Highlighting_Code_Block%E3%81%A8%E3%81%AF%EF%BC%9F\" >Highlighting Code Block\u3068\u306f\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/highlighting-code-block-dart\/#Dart%E8%A8%80%E8%AA%9E%E3%81%AB%E5%AF%BE%E5%BF%9C%E3%81%95%E3%81%9B%E3%82%88%E3%81%86\" >Dart\u8a00\u8a9e\u306b\u5bfe\u5fdc\u3055\u305b\u3088\u3046<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/highlighting-code-block-dart\/#%E3%81%9D%E3%82%82%E3%81%9D%E3%82%82prismjs%E3%81%A3%E3%81%A6%E4%BD%95%E3%81%8B%EF%BC%9F\" >\u305d\u3082\u305d\u3082prism.js\u3063\u3066\u4f55\u304b\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/highlighting-code-block-dart\/#Dart%E8%A8%80%E8%AA%9E%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%AE%E4%BB%95%E6%96%B9\" >Dart\u8a00\u8a9e\u306e\u8a2d\u5b9a\u306e\u4ed5\u65b9<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/highlighting-code-block-dart\/#%E5%AE%9F%E9%9A%9B%E3%81%AB%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%88%E3%81%86\" >\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u3088\u3046<\/a><\/li><\/ul><\/nav><\/div>\n\n<p class=\"wp-block-paragraph\">WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u300cHighlighting Code Block\u300d\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u8a00\u8a9e\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306b\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u3057\u3066\u304f\u308c\u308b\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3001\u8a2d\u5b9a\u753b\u9762\u3082\u65e5\u672c\u8a9e\u306a\u306e\u3067\u5229\u7528\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30b5\u30a4\u30c8\u3067\u3082\u300cHighlighting Code Block\u300d\u3092\u5229\u7528\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u3066\u3044\u307e\u3059\u3002\u611f\u8b1d\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"highlighting-code-block\u3068\u306f\"><span class=\"ez-toc-section\" id=\"Highlighting_Code_Block%E3%81%A8%E3%81%AF%EF%BC%9F\"><\/span>Highlighting Code Block\u3068\u306f\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u30b3\u30fc\u30c9\u3092\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306eWordpress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002\u958b\u767a\u306f<a href=\"https:\/\/loos.co.jp\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u682a\u5f0f\u4f1a\u793eLOOS<\/a>\u3055\u3093\u3067\u65e5\u672c\u306e\u4f1a\u793e\u3067\u3059\u3002\u56fd\u7523\u306a\u306e\u3067\u65e5\u672c\u8a9e\u5bfe\u5fdc\u30d0\u30c3\u30c1\u30ea\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540c\u3058\u304f\u30b3\u30fc\u30c9\u3092\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u300cCrayon&nbsp;Syntax Highlighter\u300d\u3084\u300cEnlighter\u300d\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u65e5\u672c\u8a9e\u3067\u306a\u3058\u307f\u3084\u3059\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"i59e0IK6Ys\"><a href=\"https:\/\/ja.wordpress.org\/plugins\/highlighting-code-block\/\">Highlighting Code Block<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cHighlighting Code Block\u201d \u2014 Plugin Directory\" src=\"https:\/\/ja.wordpress.org\/plugins\/highlighting-code-block\/embed\/#?secret=plUS1vPNHS#?secret=i59e0IK6Ys\" data-secret=\"i59e0IK6Ys\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u7b49\u306f\u8272\u3093\u306a\u30b5\u30a4\u30c8\u3067\u8a73\u7d30\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u5225\u9014\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a00\u8a9e\u306f<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>HTML<\/li><li>CSS<\/li><li>SCSS<\/li><li>JavaScript<\/li><li>TypeScript<\/li><li>PHP<\/li><li>Ruby<\/li><li>Python<\/li><li>Swift<\/li><li>C<\/li><li>C#<\/li><li>C++<\/li><li>Objective-C<\/li><li>SQL<\/li><li>JSON<\/li><li>Bash<\/li><li>Git<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3067\u3059\u304c\u3001\u81ea\u8eab\u3067\u4f7f\u3044\u305f\u3044\u8a00\u8a9e\u3092\u8ffd\u52a0\u3067\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<br>\u4eca\u56de\u306fDart\u8a00\u8a9e\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u4ed6\u306e\u8a00\u8a9e\u3082\u540c\u69d8\u306e\u624b\u9806\u3067\u8ffd\u52a0\u3067\u304d\u308b\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dart\u8a00\u8a9e\u306b\u5bfe\u5fdc\u3055\u305b\u3088\u3046\"><span class=\"ez-toc-section\" id=\"Dart%E8%A8%80%E8%AA%9E%E3%81%AB%E5%AF%BE%E5%BF%9C%E3%81%95%E3%81%9B%E3%82%88%E3%81%86\"><\/span>Dart\u8a00\u8a9e\u306b\u5bfe\u5fdc\u3055\u305b\u3088\u3046<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress\u7ba1\u7406\u753b\u9762\u3067\u300cHighlighting Code Block \u8a2d\u5b9a\u300d\u753b\u9762\u3092\u958b\u304d\u307e\u3059\u3002\u300c\u8a2d\u5b9a\u300d&gt;\u300c[HCB]\u8a2d\u5b9a\u300d\u3067\u958b\u3051\u307e\u3059\u3002\u3053\u306e\u30da\u30fc\u30b8\u306e\u4e00\u756a\u4e0b\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306a\u300c\u72ec\u81eaprism.js\u300d\u3092\u8a2d\u5b9a\u3059\u308b\u7b87\u6240\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"184\" src=\"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-154746-1024x184.png\" alt=\"\" class=\"wp-image-408\" srcset=\"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-154746-1024x184.png 1024w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-154746-300x54.png 300w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-154746-768x138.png 768w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-154746-800x144.png 800w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-154746.png 1052w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u72ec\u81eaprism.js<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u300cHighlighting Code Block\u300d\u306fprism.js\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u81ea\u524d\u3067\u7528\u610f\u3057\u305fprism.js\u3067\u5bfe\u5fdc\u8a00\u8a9e\u3092\u62e1\u5f35\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u305d\u3082\u305d\u3082prism-js\u3063\u3066\u4f55\u304b\"><span class=\"ez-toc-section\" id=\"%E3%81%9D%E3%82%82%E3%81%9D%E3%82%82prismjs%E3%81%A3%E3%81%A6%E4%BD%95%E3%81%8B%EF%BC%9F\"><\/span>\u305d\u3082\u305d\u3082prism.js\u3063\u3066\u4f55\u304b\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u77e5\u3063\u3066\u3044\u308b\u4eba\u306f\u8aad\u307f\u98db\u3070\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u300c<a href=\"https:\/\/prismjs.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">prism.js<\/a>\u300d\u3063\u3066\u4f55\u305e\uff1f\u3067\u3059\u304c\u3001\u7c21\u5358\u306b\u8a00\u3046\u3068\u8efd\u91cf\u306a\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<br>\u3048\u3001Highlighting Code Block\u304c\u30b3\u30fc\u30c9\u3092\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u3057\u3066\u308b\u3093\u3058\u3083\u306a\u3044\u306e\uff1f\u3063\u3066\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001Core\u306e\u90e8\u5206\u306f\u3053\u306eprism.js\u306b\u3088\u3063\u3066\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\uff08Highlighting Code Block\u306e\u30bd\u30fc\u30b9\u898b\u3066\u306a\u3044\u306e\u3067\u9593\u9055\u3063\u3066\u3044\u305f\u3089\u30b4\u30e1\u30f3\u30ca\u30b5\u30a4\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3058\u3083\u3001\u521d\u3081\u304b\u3089prism.js\u4f7f\u3048\u3070\u3044\u3044\u3058\u3083\u3093\u3001\u3068\u306a\u308a\u307e\u3059\u304c\u3001Highlighting Code Block\u306f\u3042\u304f\u307e\u3067Wordpress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3001prism.js\u3067\u8a18\u8ff0\u3057\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u3044Class\u540d\u306a\u3069\u3092\u81ea\u52d5\u88dc\u5b8c\u3057\u3066\u304f\u308c\u308b\u3082\u306e\u3067\u3059\u3002Wordpress\u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u306e\u6295\u7a3f\u3092\u52b9\u7387\u7684\u306b\u884c\u3046\u305f\u3081\u306bHighlighting Code Block\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress\u306e\u6295\u7a3f\u306e\u969b\u306b\u30b3\u30fc\u30c9\u7de8\u96c6\u30e2\u30fc\u30c9\u3067&lt;pre&gt;&lt;\/pre&gt;\u30bf\u30b0\u3067\u56f2\u3063\u3066\u3001Class\u540d\u306b\u8a00\u8a9e\u6307\u5b9a\u3057\u3066\u3001\u884c\u6570\u306e\u6709\u7121\u3082\u6307\u5b9a\u3057\u3066\u2026\u2026\u3063\u3066\u3084\u3063\u3066\u308b\u3068\u9762\u5012\u3060\u3057\u3001\u304b\u306a\u308a\u975e\u52b9\u7387\u3067\u3059\u3002\u305d\u306e\u3088\u3046\u306aHTML\u306e\u8a18\u8ff0\u3092\u81ea\u52d5\u7684\u306b\u884c\u3063\u3066\u304f\u308c\u308b\u306e\u304c\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5f79\u76ee\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u308f\u305a\u306bprism.js\u3060\u3051\u8aad\u307f\u8fbc\u3093\u3067\u6295\u7a3f\u753b\u9762\u306b\u66f8\u3053\u3046\u3068\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u81ea\u529b\u3067\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-html\" data-file=\"<pre&gt;\u3092\u81ea\u529b\u3067\u66f8\u304f\u4f8b\" data-lang=\"HTML\"><code>&lt;pre&gt;&lt;code class=&quot;language-css&quot;&gt;p { color: red; }&lt;\/code&gt;&lt;\/pre&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306eclass=&#8221;language-css&#8221;\u306e\u90e8\u5206\u3068\u304b\u3044\u3061\u3044\u3061\u66f8\u3044\u3066\u308b\u3068\u30a4\u30e9\u30a4\u30e9\u3057\u3066\u304d\u307e\u3059\u3002\u305d\u308c\u3092\u89e3\u6d88\u3057\u3066\u304f\u308c\u308b\u306e\u304c\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<br>WordPress\u306e\u30d6\u30ed\u30c3\u30af\u7de8\u96c6\u3067\u5165\u529b\u3057\u305f\u7b87\u6240\u3092Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u3067\u78ba\u8a8d\u3059\u308b\u3068\u3001<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"471\" src=\"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-161943.png\" alt=\"\" class=\"wp-image-411\" srcset=\"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-161943.png 901w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-161943-300x157.png 300w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-161943-768x401.png 768w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-161943-800x418.png 800w\" sizes=\"auto, (max-width: 901px) 100vw, 901px\" \/><figcaption>language-\u3007\u3007\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306blanguage-dart\u3068Class\u3092\u81ea\u52d5\u3067\u4ed8\u4e0e\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3059\u3002\u3081\u3093\u3069\u304f\u3055\u304c\u308a\u306e\u50d5\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u3053\u3068\u3092\u9078\u3073\u307e\u3057\u305f\u3002\u304a\u305d\u3089\u304f\u4ed6\u306e\u51e6\u7406\u3082\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u88dc\u5b8c\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u3067\u304b\u306a\u308a\u306e\u52b9\u7387\u5316\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"dart\u8a00\u8a9e\u306e\u8a2d\u5b9a\u306e\u4ed5\u65b9\"><span class=\"ez-toc-section\" id=\"Dart%E8%A8%80%E8%AA%9E%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%AE%E4%BB%95%E6%96%B9\"><\/span>Dart\u8a00\u8a9e\u306e\u8a2d\u5b9a\u306e\u4ed5\u65b9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a71\u304c\u98db\u8e8d\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3067\u306f\u5b9f\u969b\u306bDart\u8a00\u8a9e\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br>\u5927\u307e\u304b\u306a\u624b\u9806\u306f\u3001<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>prism.js\uff08prism.css*\uff09\u306e\u53d6\u5f97\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/li><li>prism.js\uff08prism.css*\uff09\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/li><li>\u7ba1\u7406\u753b\u9762\u3067\u306e\u767b\u9332\u30fb\u4f7f\u7528\u3059\u308b\u8a00\u8a9e\u30bb\u30c3\u30c8\u306e\u767b\u9332<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\uff08*: \u30c6\u30fc\u30de\u306e\u5909\u66f4\u304c\u4e0d\u8981\u3067\u3042\u308c\u3070\u3001CSS\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\uff09<br>\u3053\u306e\u3088\u3046\u306a\u6d41\u308c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff11\uff0eprism.js\u3001prism.css\u306e\u53d6\u5f97\u306f\u3001<a href=\"https:\/\/prismjs.com\/download.html#themes=prism-okaidia&amp;languages=markup+css+clike+javascript\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">prism.js\u516c\u5f0f\u306e\u30da\u30fc\u30b8<\/a>\u3067\u3001\u3054\u81ea\u8eab\u306b\u5408\u3063\u305f\u8a00\u8a9e\u3092\u9078\u629e\uff06\u30c6\u30fc\u30de\u30ab\u30e9\u30fc\u7b49\u3092\u9078\u629e\u3057\u3066\u3001\u4e00\u756a\u4e0b\u306b\u3042\u308b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3060\u3051\u3067\u3059\u3002\uff08\u306a\u3093\u3066\u7c21\u5358\u2026\u2026\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff12\uff0e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\/wp-content\/themes\/\uff08\u81ea\u5206\u304c\u4f7f\u3063\u3066\u3044\u308b\u30c6\u30fc\u30de\uff09\/\u914d\u4e0b\u306bFTP\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff13\uff0e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u3089\u767b\u9332\u753b\u9762\u306e\u300c\u72ec\u81eaprism.js\u300d\u6b04\u306b&nbsp;\u300cprism.js\u300d\u3068\u5165\u529b\u3002\u3082\u3057CSS\u306bCSS\u3082\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u5148\u307b\u3069\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fprism.css\u3092\u300c\u72ec\u81ea\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u30d5\u30a1\u30a4\u30eb\u300d\u306b\u5165\u529b\u3057\u307e\u3059\u3002<br><strong>\uff08\u6ce8\u610f\uff09<\/strong>\u3053\u3061\u3089\u3067CSS\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3001<strong>Dart\u8a00\u8a9e\u7528\u72ec\u81ea\u3084\u5404\u8a00\u8a9e\u72ec\u81ea\u306eCSS\u306f\u542b\u307e\u308c\u306a\u304b\u3063\u305f<\/strong>\u306e\u3067\u7279\u6bb5\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001Highlighting Code Block\u30c7\u30d5\u30a9\u30eb\u30c8\u306eCSS\u306e\u307e\u307e\u3067\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">prism.js\u306e\u8a18\u8f09\u304c\u7d42\u308f\u3063\u305f\u3089\u300c\u4f7f\u7528\u3059\u308b\u8a00\u8a9e\u30bb\u30c3\u30c8\u300d\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"472\" src=\"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-165416.png\" alt=\"\" class=\"wp-image-414\" srcset=\"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-165416.png 921w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-165416-300x154.png 300w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-165416-768x394.png 768w, https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-17-165416-800x410.png 800w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><figcaption>dart: &#8220;Dart&#8221;, \u3092\u8ffd\u8a18<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u672b\u5c3e\u306b\u300c,\uff08\u30ab\u30f3\u30de\uff09\u300d\u3092\u4ed8\u3051\u308b\u306e\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u4e00\u756a\u4e0b\u306b\u8ffd\u52a0\u3059\u308b\u5834\u5408\u3082\u672b\u5c3e\u306b\u300c,\u300d\u304c\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u3002\u5404\u8a00\u8a9e\u306e\u5bfe\u5fdc\u5909\u6570\u306f<a href=\"https:\/\/prismjs.com\/#supported-languages\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/prismjs.com\/#supported-languages<\/a>\u306b\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u78ba\u8a8d\u3057\u3066\u8a18\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f8b\u3048\u3070\u300cF#\u300d\u8a00\u8a9e\u3067\u3042\u308c\u3070\u300cfsharp\u300d\u3001\u300cReact TSX\u300d\u3067\u3042\u308c\u3070\u300ctsx\u300d\u3068\u306a\u308a\u307e\u3059\u3002\u300cfsharp: &#8220;F#&#8221;,\u300d\u300ctsx: &#8220;&#8221;React TSX,\u300d\u3068\u3044\u3046\u98a8\u306b\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5168\u90e8\u8a18\u5165\u304c\u7d42\u308f\u3063\u305f\u3089\u8a2d\u5b9a\u753b\u9762\u306e\u4e00\u756a\u4e0b\u306b\u3042\u308b\u300c\u5909\u66f4\u3092\u4fdd\u5b58\u300d\u3092\u62bc\u3057\u3066\u5b8c\u4e86\u3067\u3059\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u3088\u3046\"><span class=\"ez-toc-section\" id=\"%E5%AE%9F%E9%9A%9B%E3%81%AB%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%88%E3%81%86\"><\/span>\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u3088\u3046<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Dart\u8a00\u8a9e\u3092Highlighting Code Block\u306b\u8ffd\u52a0\u3057\u3066\u3001Wordpress\u306e\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u3067\u5165\u529b\u3057\u305f\u3068\u3053\u308d\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u304d\u3061\u3093\u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff01Flutter\u306e\u30e1\u30a4\u30f3\u3068\u306a\u308bmain.dart\u3092\u5165\u308c\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-dart\" data-file=\"main.dart\" data-lang=\"Dart\"><code>import &#39;package:flutter\/material.dart&#39;;\n\nvoid main() {\n  runApp(const MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n  const MyApp({Key? key}) : super(key: key);\n\n  \/\/ This widget is the root of your application.\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      title: &#39;Flutter Demo&#39;,\n      theme: ThemeData(\n        \/\/ This is the theme of your application.\n        \/\/\n        \/\/ Try running your application with &quot;flutter run&quot;. You&#39;ll see the\n        \/\/ application has a blue toolbar. Then, without quitting the app, try\n        \/\/ changing the primarySwatch below to Colors.green and then invoke\n        \/\/ &quot;hot reload&quot; (press &quot;r&quot; in the console where you ran &quot;flutter run&quot;,\n        \/\/ or simply save your changes to &quot;hot reload&quot; in a Flutter IDE).\n        \/\/ Notice that the counter didn&#39;t reset back to zero; the application\n        \/\/ is not restarted.\n        primarySwatch: Colors.blue,\n      ),\n      home: const MyHomePage(title: &#39;Flutter Demo Home Page&#39;),\n    );\n  }\n}\n\nclass MyHomePage extends StatefulWidget {\n  const MyHomePage({Key? key, required this.title}) : super(key: key);\n\n  \/\/ This widget is the home page of your application. It is stateful, meaning\n  \/\/ that it has a State object (defined below) that contains fields that affect\n  \/\/ how it looks.\n\n  \/\/ This class is the configuration for the state. It holds the values (in this\n  \/\/ case the title) provided by the parent (in this case the App widget) and\n  \/\/ used by the build method of the State. Fields in a Widget subclass are\n  \/\/ always marked &quot;final&quot;.\n\n  final String title;\n\n  @override\n  State&lt;MyHomePage&gt; createState() =&gt; _MyHomePageState();\n}\n\nclass _MyHomePageState extends State&lt;MyHomePage&gt; {\n  int _counter = 0;\n\n  void _incrementCounter() {\n    setState(() {\n      \/\/ This call to setState tells the Flutter framework that something has\n      \/\/ changed in this State, which causes it to rerun the build method below\n      \/\/ so that the display can reflect the updated values. If we changed\n      \/\/ _counter without calling setState(), then the build method would not be\n      \/\/ called again, and so nothing would appear to happen.\n      _counter++;\n    });\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    \/\/ This method is rerun every time setState is called, for instance as done\n    \/\/ by the _incrementCounter method above.\n    \/\/\n    \/\/ The Flutter framework has been optimized to make rerunning build methods\n    \/\/ fast, so that you can just rebuild anything that needs updating rather\n    \/\/ than having to individually change instances of widgets.\n    return Scaffold(\n      appBar: AppBar(\n        \/\/ Here we take the value from the MyHomePage object that was created by\n        \/\/ the App.build method, and use it to set our appbar title.\n        title: Text(widget.title),\n      ),\n      body: Center(\n        \/\/ Center is a layout widget. It takes a single child and positions it\n        \/\/ in the middle of the parent.\n        child: Column(\n          \/\/ Column is also a layout widget. It takes a list of children and\n          \/\/ arranges them vertically. By default, it sizes itself to fit its\n          \/\/ children horizontally, and tries to be as tall as its parent.\n          \/\/\n          \/\/ Invoke &quot;debug painting&quot; (press &quot;p&quot; in the console, choose the\n          \/\/ &quot;Toggle Debug Paint&quot; action from the Flutter Inspector in Android\n          \/\/ Studio, or the &quot;Toggle Debug Paint&quot; command in Visual Studio Code)\n          \/\/ to see the wireframe for each widget.\n          \/\/\n          \/\/ Column has various properties to control how it sizes itself and\n          \/\/ how it positions its children. Here we use mainAxisAlignment to\n          \/\/ center the children vertically; the main axis here is the vertical\n          \/\/ axis because Columns are vertical (the cross axis would be\n          \/\/ horizontal).\n          mainAxisAlignment: MainAxisAlignment.center,\n          children: &lt;Widget&gt;[\n            const Text(\n              &#39;You have pushed the button this many times:&#39;,\n            ),\n            Text(\n              &#39;$_counter&#39;,\n              style: Theme.of(context).textTheme.headline4,\n            ),\n          ],\n        ),\n      ),\n      floatingActionButton: FloatingActionButton(\n        onPressed: _incrementCounter,\n        tooltip: &#39;Increment&#39;,\n        child: const Icon(Icons.add),\n      ), \/\/ This trailing comma makes auto-formatting nicer for build methods.\n    );\n  }\n}\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3046\u3093\u3001\u7dba\u9e97\u3067Good\uff01\u3066\u304b\u3001\u30b3\u30e1\u30f3\u30c8\u591a\u3063\u3063\u3002<br>\u4ee5\u4e0a\u3001\u7686\u3055\u3093\u3082\u3046\u307e\u304f\u3044\u3063\u305f\u3089\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u300cHighlighting Code Block\u300d\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u8a00\u8a9e\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306b\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u3057\u3066\u304f\u308c\u308b\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3001\u8a2d\u5b9a\u753b\u9762\u3082\u65e5\u672c\u8a9e\u306a\u306e\u3067\u5229\u7528\u3059\u308b\u4fa1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":417,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[44,34,16],"class_list":["post-402","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-43","tag-wordpress","tag-34","tag-16"],"_links":{"self":[{"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":13,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":1515,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/posts\/402\/revisions\/1515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/media\/417"}],"wp:attachment":[{"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/media?parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}