{"id":163,"date":"2010-04-09T20:08:21","date_gmt":"2010-04-09T11:08:21","guid":{"rendered":"http:\/\/astel-labs.net\/blog\/diary\/2010\/04\/syntaxhighlighter.html"},"modified":"2012-03-31T19:10:20","modified_gmt":"2012-03-31T10:10:20","slug":"syntaxhighlighter","status":"publish","type":"post","link":"http:\/\/astel-labs.net\/blog\/diary\/2010\/04\/syntaxhighlighter.html","title":{"rendered":"SyntaxHighlighter\u3092\u8a2d\u7f6e\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u4e00\u5fdc\u3001\u307e\u304c\u308a\u306a\u308a\u306b\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u95a2\u9023\u8a18\u4e8b\u3092\u8f09\u305b\u305f\u3044\u306a\uff5e\u3068\u601d\u3063\u3066\u3044\u308b\u8a33\u306a\u306e\u3067\u3001\u30b3\u30fc\u30c9\u3092\u898b\u3084\u3059\u304f\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306b\u300c<a href=\"http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter\">SyntaxHighlighter<\/a>\u300d\u3092\u8a2d\u7f6e\u3057\u3066\u307f\u308b<\/p>\n<p>\u73fe\u5728\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u300c2.1.364\u300d\u3067\u3059\u304c\u3001\u65e5\u672c\u8a9e\u306e\u8a18\u4e8b\u304c\u306a\u304b\u306a\u304b\u898b\u3064\u304b\u3089\u306a\u3044\u30fb\u30fb\u30fb<br \/>\n\uff08\u308f\u305f\u3057\u306f\u65e5\u672c\u4eba\u306a\u306e\u3067\u3001\u82f1\u8a9e\u306a\u3093\u3066\u308f\u304b\u308a\u307e\u305b\u3093\uff01\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u306f\u3001\u30cd\u30c3\u30c8\u3067\u60c5\u5831\u3092\u63a2\u3057\u306a\u304c\u3089\u81ea\u529b\u3067\u8a2d\u7f6e\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u30fb\u30fb\u30fb<br \/>\n\u3061\u306a\u307f\u306b\u308f\u305f\u3057\u306fweb\u30a2\u30d7\u30ea\u7cfb\u306f\u307b\u307c\u77e5\u8b58\u304c\u306a\u3044\u306e\u3067\u3001\u30bf\u30b0\u3092\u3069\u3053\u306b\u914d\u7f6e\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u3082\u826f\u304f\u308f\u304b\u3063\u3066\u3044\u307e\u305b\u3093\uff01<\/p>\n<p>\u4e0d\u5b89\u8981\u7d20\u304c\u76db\u308a\u3060\u304f\u3055\u3093\u3067\u3059\u304c\u3001\u00a0\u307e\u305a\u306fSyntaxHighlighter\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30fb\u30fb\u30fb<\/p>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u5b9f\u969b\u306b\u8a66\u884c\u932f\u8aa4\u3057\u306a\u304c\u3089\u8a2d\u7f6e\u3057\u305f\u624b\u9806\u306b\u306a\u308a\u307e\u3059<\/p>\n<p>&nbsp;<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u300csyntaxhighlighter_2.1.364.zip\u300d\u3092\u89e3\u51cd\u3059\u308b\u3068\u3001\u300cscripts\u300d\u300csrc\u300d\u300cstyles\u300d\u300cLGPLv3.txt\u300d\u300ctest.html\u300d\u306e\uff15\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u5b9f\u969b\u306b\u4f7f\u7528\u3059\u308b\u306e\u306f\u3001\u3053\u306e\u4e2d\u306e\u300cscripts\u300d\u300cstyles\u300d\u306e\uff12\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u3067\u3059<\/p>\n<p>&nbsp;<\/p>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306bMovableType5\u306b\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\uff11\uff0e\u307e\u305a\u306f\u540d\u524d\u306f\u4f55\u3067\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u5224\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u300cSyntaxHighlighter\u300d\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u81ea\u5206\u306ePC\u306e\u30ed\u30fc\u30ab\u30eb\u306b\u4f5c\u6210\u3057\u307e\u3059<br \/>\n\uff12\uff0e\u4f5c\u6210\u3057\u305f\u300cSyntaxHighlighter\u300d\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5224\u308b\u3088\u3046\u306b\u300c2.1\u300d\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u4e2d\u306b\u300cscripts\u300d\u300cstyles\u300d\u306e\uff12\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059<\/p>\n<p>\u3053\u3053\u304b\u3089\u306fMovableType\u3092\u30db\u30b9\u30c8\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u64cd\u4f5c\u3067\u3059<br \/>\n\uff13\uff0e\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eMovableType\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0\u304c\u300cmt\u300d\u3060\u3068\u3057\u305f\u5834\u5408\u3001\u300c\/mt\/mt-static\/plugins\u300d\u3068\u3001\u30d5\u30a9\u30eb\u30c0\u3092\u305f\u3069\u3063\u3066\u3044\u304d\u307e\u3059<br \/>\n\uff14\uff0e\u300cplugins\u300d\u3092\u958b\u3044\u305f\u3089\u3001\u305d\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u624b\u9806\uff11\uff0e\u3067\u4f5c\u6210\u3057\u305f\u300cSyntaxHighlighter\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059<\/p>\n<p>\u3053\u3053\u304b\u3089\u306fMovableType\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u64cd\u4f5c\u3057\u307e\u3059<br \/>\n\uff15\uff0e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u300c\u30c7\u30b6\u30a4\u30f3\u300d-\u300c\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u300d-\u300c\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\u300d\u304b\u3089\u3001\u300cHTML\u30d8\u30c3\u30c0\u30fc\u300d\u3092\u9078\u629e\u3059\u308b<br \/>\n<a href=\"http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/04\/HTML_header.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-246\" title=\"HTML_header\" src=\"http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/04\/HTML_header-300x219.jpg\" alt=\"\" width=\"300\" height=\"219\" srcset=\"http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/04\/HTML_header-300x219.jpg 300w, http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/04\/HTML_header.jpg 698w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\uff16\uff0e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7de8\u96c6\u3059\u308b<\/p>\n<pre class=\"brush: html\">&lt;!-- \u3053\u3053\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 --&gt;\r\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=&lt;$mt:PublishCharset$&gt;&quot; \/&gt;\r\n&lt;meta name=&quot;generator&quot; content=&quot;&lt;$mt:ProductName version=&quot;1&quot;$&gt;&quot; \/&gt;\r\n&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;$mt:Link template=&quot;styles&quot;$&gt;&quot; type=&quot;text\/css&quot; \/&gt;\r\n&lt;link rel=&quot;start&quot; href=&quot;&lt;$mt:BlogURL$&gt;&quot; title=&quot;Home&quot; \/&gt;\r\n&lt;link rel=&quot;alternate&quot; type=&quot;application\/atom+xml&quot; title=&quot;Recent Entries&quot; href=&quot;&lt;$mt:Link template=&quot;feed_recent&quot;$&gt;&quot; \/&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;&lt;$mt:Link template=&quot;javascript&quot;$&gt;&quot;&gt;&lt;\/script&gt;\r\n&lt;!-- \u3053\u3053\u304b\u3089\u8ffd\u52a0 --&gt;\r\n&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; charset=&quot;utf-8&quot; href=&quot;\/mt\/mt-static\/plugins\/SyntaxHighlighter\/2.1\/styles\/shCore.css&quot;\/&gt;\r\n&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; charset=&quot;utf-8&quot; href=&quot;\/mt\/mt-static\/plugins\/SyntaxHighlighter\/2.1\/styles\/shThemeDefault.css&quot;\/&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;\/mt\/mt-static\/plugins\/SyntaxHighlighter\/2.1\/scripts\/shCore.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;\/mt\/mt-static\/plugins\/SyntaxHighlighter\/2.1\/scripts\/shBrushCSharp.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;\/mt\/mt-static\/plugins\/SyntaxHighlighter\/2.1\/scripts\/shBrushCpp.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;\/mt\/mt-static\/plugins\/SyntaxHighlighter\/2.1\/scripts\/shBrushXml.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\nSyntaxHighlighter.config.clipboardSwf = &#039;\/mt\/mt-static\/plugins\/SyntaxHighlighter\/2.1\/scripts\/clipboard.swf&#039;;\r\nSyntaxHighlighter.config.strings.expandSource = &#039;\u30bd\u30fc\u30b9\u3092\u5c55\u958b&#039;;\r\nSyntaxHighlighter.config.strings.viewSource = &#039;\u30d7\u30ec\u30fc\u30f3\u8868\u793a&#039;;\r\nSyntaxHighlighter.config.strings.copyToClipboard = &#039;\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u3078\u30b3\u30d4\u30fc&#039;;\r\nSyntaxHighlighter.config.strings.copyToClipboardConfirmation =&#039;\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u3078\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f&#039;;\r\nSyntaxHighlighter.config.strings.print = &#039;\u5370\u5237&#039;;\r\nSyntaxHighlighter.config.strings.help = &#039;help&#039;;\r\nSyntaxHighlighter.all();\r\n&lt;\/script&gt;\r\n&lt;!-- \u3053\u3053\u307e\u3067\u8ffd\u52a0 --&gt;\r\n&lt;$mt:CCLicenseRDF$&gt;<\/pre>\n<p>\uff17\uff0e\u8a2d\u5b9a\u3092\u4fdd\u5b58\u3057\u3066\u3001\u30b5\u30a4\u30c8\u3092\u518d\u69cb\u7bc9\u3059\u308b<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059<br \/>\n\u5f8c\u306f\u3001\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<p>\uff18\uff0e\u30d6\u30ed\u30b0\u8a18\u4e8b\u5185\u306b\u3001C#\u3067\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u308b<\/p>\n<pre class=\"brush: csharp\">usingSystem;\r\nnamespace ConsoleApplication1\r\n{\r\n    class Program\r\n    {\r\n        static void Main( string[] args )\r\n        {\r\n            Console.WriteLine( &quot;Hello, World!&quot; );\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067html\u30b3\u30fc\u30c9\u3092\u76f4\u63a5\u57cb\u3081\u8fbc\u3093\u3067\u3042\u3052\u308b\u3068\u3001\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u30fb\u30fb\u30fb<br \/>\n\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u3089\u81ea\u529b\u3067\u304c\u3093\u3070\u3063\u3066\u304f\u3060\u3055\u3044\uff01<br \/>\n\uff08\u308f\u305f\u3057\u306f\u3053\u3053\u307e\u3067\u3067\uff13\u6642\u9593\u304b\u304b\u308a\u307e\u3057\u305f\u30fb\u30fb\u30fb\uff09<\/p>\n<p>\u3042\u3068\u306f\u3001HTML\u30d8\u30c3\u30c0\u30fc\u306b\u57cb\u3081\u8fbc\u3093\u3060\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001C#\u3068html\/XML\u4ee5\u5916\u306e\u8a00\u8a9e\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u306b\u306f\u300c<a href=\"http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter:Brushes\">Brushes<\/a>\u300d\u3092\u53c2\u8003\u306b\u884c\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u5fdc\u3001\u307e\u304c\u308a\u306a\u308a\u306b\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u95a2\u9023\u8a18\u4e8b\u3092\u8f09\u305b\u305f\u3044\u306a\uff5e\u3068\u601d\u3063\u3066\u3044\u308b\u8a33\u306a\u306e\u3067\u3001\u30b3\u30fc\u30c9\u3092\u898b\u3084\u3059\u304f\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306b\u300cSyntaxHighlighter\u300d\u3092\u8a2d\u7f6e\u3057\u3066\u307f\u308b \u73fe\u5728\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u300c2.1.364\u300d\u3067\u3059\u304c\u3001\u65e5\u672c\u8a9e\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":10,"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":412,"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/163\/revisions\/412"}],"wp:attachment":[{"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}