{"id":29936,"date":"2014-06-07T02:46:27","date_gmt":"2014-06-07T02:46:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-code-highlightjs\/"},"modified":"2019-07-16T05:49:51","modified_gmt":"2019-07-16T05:49:51","slug":"wp-code-highlightjs","status":"closed","type":"plugin","link":"https:\/\/ja.wordpress.org\/plugins\/wp-code-highlightjs\/","author":12144505,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.6.3","stable_tag":"trunk","tested":"5.2.24","requires":"4.7.0","requires_php":"","requires_plugins":"","header_name":"WP Code Highlight.js","header_author":"OWenT","header_description":"","assets_banners_color":"","last_updated":"2019-07-16 05:49:51","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/#donate","header_plugin_uri":"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js","header_author_uri":"https:\/\/owent.net\/","rating":5,"author_block_rating":0,"active_installs":600,"downloads":35832,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"13"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-5.png":{"filename":"screenshot-5.png","revision":"2123610","resolution":"5","location":"plugin"},"screenshot-7.png":{"filename":"screenshot-7.png","revision":"2123610","resolution":"7","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"2123610","resolution":"2","location":"plugin"},"screenshot-6.png":{"filename":"screenshot-6.png","revision":"2123610","resolution":"6","location":"plugin"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"2123610","resolution":"4","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"2123610","resolution":"1","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"2123610","resolution":"3","location":"plugin"}},"screenshots":{"1":"Highlight.js Demo","2":"Setting1: Select CDN or local","3":"Setting2: Custom Languages","4":"Setting3: Highlighting styles","5":"Setting4: Compatiable Mode","6":"Sample: Simple","7":"Sample: Syntax Highlighter Compatiable Mode"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,3986,4444,8747,9663],"plugin_category":[34,46,59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-29936","plugin","type-plugin","status-closed","hentry","plugin_tags-code","plugin_tags-highlight","plugin_tags-highlighter","plugin_tags-source","plugin_tags-sourcecode","plugin_category-accessibility","plugin_category-editor-and-writing","plugin_category-utilities-and-tools","plugin_committers-owt5008137"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-code-highlightjs.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-code-highlightjs\/trunk\/screenshot-1.png?rev=2123610","caption":"Highlight.js \u306e\u30c7\u30e2"},{"src":"https:\/\/ps.w.org\/wp-code-highlightjs\/trunk\/screenshot-2.png?rev=2123610","caption":"Setting1: Select CDN or local"},{"src":"https:\/\/ps.w.org\/wp-code-highlightjs\/trunk\/screenshot-3.png?rev=2123610","caption":"Setting2: Custom Languages"},{"src":"https:\/\/ps.w.org\/wp-code-highlightjs\/trunk\/screenshot-4.png?rev=2123610","caption":"Setting3: Highlighting styles"},{"src":"https:\/\/ps.w.org\/wp-code-highlightjs\/trunk\/screenshot-5.png?rev=2123610","caption":"Setting4: Compatiable Mode"},{"src":"https:\/\/ps.w.org\/wp-code-highlightjs\/trunk\/screenshot-6.png?rev=2123610","caption":"Sample: Simple"},{"src":"https:\/\/ps.w.org\/wp-code-highlightjs\/trunk\/screenshot-7.png?rev=2123610","caption":"Sample: Syntax Highlighter Compatiable Mode"}],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\">WP-Code-Highlight.js<\/a> is a wordpress plugin for <a href=\"https:\/\/highlightjs.org\">highlight.js<\/a> library.\n<a href=\"https:\/\/highlightjs.org\">Highlight.js<\/a> highlights codes on any web pages very fastly.<\/p>\n\n<p>This plugin allow you load highlight.js from local storage or from CDN.\nIf you use local highlight.js, you can also choose only some languages\nto make javascript file smaller(the smallest size is about 40+KB).<\/p>\n\n<p>You can also migrate from some other syntax highlighter easily. By now, we support SyntaxHighlighter, Prettify and CrayonSyntaxHighlighter.<\/p>\n\n<h4>Features:<\/h4>\n\n<ul>\n<li>Works with comments<\/li>\n<li>High performance<\/li>\n<li>Nice colorshemes<\/li>\n<li>Load from cdn or local<\/li>\n<li>Custom language packages<\/li>\n<li>SyntaxHighlighter compatible mode<\/li>\n<li>Prettify compatible mode<\/li>\n<li>Crayon Syntax Highlighter compatible mode<\/li>\n<li>Work well with <a href=\"http:\/\/johnmacfarlane.net\/pandoc\/\">pandoc<\/a>, <a href=\"https:\/\/stackedit.io\/editor\">stackedit<\/a>, <a href=\"https:\/\/typora.io\">typora<\/a> or other markdown editors<\/li>\n<\/ul>\n\n<p>Author: <a href=\"http:\/\/owent.net\/\">OWenT<\/a>\nOpen Source: <a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\">https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js<\/a><\/p>\n\n<!--section=installation-->\n<p>Install from wordpress<\/p>\n\n<ol>\n<li>Open plugin installing page<\/li>\n<li>Search  WP Code Highlight.js<\/li>\n<li>Install it<\/li>\n<li>Use &lt;pre&gt;&lt;code&gt; and &lt;\/code&gt;&lt;\/pre&gt; to wrapper your code.(see <a href=\"https:\/\/github.com\/isagalaev\/highlight.js\">highlightjs<\/a> for detail)<\/li>\n<li>Enable SyntaxHighlighter compatible mode and Prettify compatible mode if you need it.<\/li>\n<\/ol>\n\n<p>Install custom<\/p>\n\n<ol>\n<li>Download release package<\/li>\n<li>Unzip and rename folder name into wp-code-highlight.js<\/li>\n<li>Move this folder into <em>[your wordpress path]\/wp-content\/plugins\/<\/em> folder<\/li>\n<li>Use &lt;pre&gt;&lt;code&gt; and &lt;\/code&gt;&lt;\/pre&gt; to wrapper your code.(see <a href=\"https:\/\/github.com\/isagalaev\/highlight.js\">highlightjs<\/a> for detail)<\/li>\n<li>Enable SyntaxHighlighter compatible mode and Prettify compatible mode if you need it.<\/li>\n<\/ol>\n\n<p>Just have fun.<\/p>\n\n<!--section=changelog-->\n<p>= 0.6.3\n1. Fix CSRF vulnerability that can lead to blog-wide XSS <a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/pull\/27\">RP #27<\/a>\n2. add highlight.js 9.15.8\n3. remove useless CDNs<\/p>\n\n<p>= 0.6.2\n1. merge <a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/pull\/24\">PR #24<\/a>, thanks to <a href=\"http:\/\/iamakulov.com\">Ivan Akulov<\/a><\/p>\n\n<p>= 0.6.1\n1. fix missing languages for highlight.js 9.12.0<\/p>\n\n<p>= 0.6.0\n1. report warning when we has no writing access to the plugin directory\n2. fix <a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/issues\/22\">issue #22<\/a>. thanks to <a href=\"https:\/\/github.com\/Daredzik\">Daredzik<\/a>\n3. update highlight.js to 9.12.0<\/p>\n\n<p>= 0.5.18\n1. update highlight.js to 9.10.0<\/p>\n\n<p>= 0.5.17\n1. fix some software treat .js suffix as static file.(https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/pull\/18)\n2. fix language miss when in prettify compatible<\/p>\n\n<p>= 0.5.16\n1. update highlight.js version to 9.9.0\n2. jsDelivr and MaxCDN use latest version (9.9.0) now<\/p>\n\n<p>= 0.5.15\n1. update highlight.js version to 9.7.0<\/p>\n\n<p>= 0.5.14\n1. update highlight.js version to 9.5.0<\/p>\n\n<p>= 0.5.13\n1. translate<\/p>\n\n<p>= 0.5.12\n1. tested in wordpress 4.5.2\n2. update highlight.js version to 9.4.0\n3. clear some old CDN<\/p>\n\n<p>= 0.5.11\n1. add bbcode option to enable or disable bbcode inside [code][\/code]\n2. update highlight.js version to 9.3.0<\/p>\n\n<p>= 0.5.10\n1. update highlight.js version to 9.2.0<\/p>\n\n<p>= 0.5.9\n1. update Baidu CDN highlight.js version to 9.1.0\n3. merge <a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/pull\/15\">PR#15<\/a><\/p>\n\n<p>= 0.5.8\n1. update highlight.js version to 9.1.0\n2. update Baidu CDN highlight.js version to 9.0.0\n3. update PR (9.1.0) is pushed to baiducdnstatic repository and wait for merge<\/p>\n\n<p>= 0.5.7\n1. fix auto rename bug(<a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/issues\/12\">Issue #12<\/a>). thanks to <a href=\"http:\/\/www.shiyaluo.com\">shiya<\/a><\/p>\n\n<h4>0.5.5<\/h4>\n\n<ol>\n<li>update highlight.js to 9.0.0<\/li>\n<li>using default style file when highlight.js change the name rule<\/li>\n<\/ol>\n\n<h4>0.5.4<\/h4>\n\n<ol>\n<li>update baidu cdn to 8.9.1<\/li>\n<\/ol>\n\n<h4>0.5.3<\/h4>\n\n<ol>\n<li>update highlight.js to 8.9.1<\/li>\n<\/ol>\n\n<h4>0.5.2<\/h4>\n\n<ol>\n<li>update highlight.js to 8.8.0<\/li>\n<\/ol>\n\n<h4>0.5.1<\/h4>\n\n<ol>\n<li>fix bbcode bug(<a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/issues\/10\">Issue #10<\/a>)<\/li>\n<\/ol>\n\n<h4>0.5.0<\/h4>\n\n<ol>\n<li>update highlight 8.7<\/li>\n<li>remove ext mode<\/li>\n<\/ol>\n\n<h4>0.5.0<\/h4>\n\n<ol>\n<li>update highlight 8.7<\/li>\n<li>remove ext mode<\/li>\n<\/ol>\n\n<h4>0.4.2<\/h4>\n\n<ol>\n<li>style list is sorted.<\/li>\n<\/ol>\n\n<h4>0.4.1<\/h4>\n\n<ol>\n<li>add hljs css class when generate code label in compatiable mode<\/li>\n<li>fix html symbol in readme<\/li>\n<\/ol>\n\n<h4>0.4.0<\/h4>\n\n<ol>\n<li>rebuild custom language packages only upgrade this plugin.<\/li>\n<\/ol>\n\n<h4>0.3.8<\/h4>\n\n<ol>\n<li>fix installation readme<\/li>\n<li>optimize upgrade hook<\/li>\n<\/ol>\n\n<h4>0.3.7<\/h4>\n\n<ol>\n<li>update highlight.js in Baidu CDN into 8.6<\/li>\n<li>hook upgrade action and auto update custom package when upgraded<\/li>\n<\/ol>\n\n<h4>0.3.6<\/h4>\n\n<ol>\n<li>update highlight.js into 8.6<\/li>\n<\/ol>\n\n<h4>0.3.5<\/h4>\n\n<ol>\n<li>fix baidu cdn urls<\/li>\n<li>allow to load custom language scripts from CDN<\/li>\n<li>add CDN reference url of highlight.js to readme<\/li>\n<\/ol>\n\n<h4>0.3.4<\/h4>\n\n<ol>\n<li>replace baidu cdn with url support https<\/li>\n<li>update baidu cdn because it accept highlight.js 8.5 now<\/li>\n<\/ol>\n\n<h4>0.3.3<\/h4>\n\n<ol>\n<li>add [Crayon Syntax Highlighter Compatible] option<\/li>\n<li>thanks to <a href=\"https:\/\/github.com\/David-CodingSerf\">David<\/a><\/li>\n<\/ol>\n\n<h4>0.3.2<\/h4>\n\n<ol>\n<li>tested under wp 4.2<\/li>\n<\/ol>\n\n<h4>0.3.1<\/h4>\n\n<ol>\n<li>fix inject script order problem<\/li>\n<\/ol>\n\n<h4>0.3.0<\/h4>\n\n<ol>\n<li>turn wp-highlight.js's codes into footer<\/li>\n<li>update highlight.js to 8.5<\/li>\n<li>you can select which languages to include when not using CDN<\/li>\n<\/ol>\n\n<h4>0.2.3<\/h4>\n\n<ol>\n<li>merge <a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/pull\/5\">Request 5<\/a><\/li>\n<\/ol>\n\n<h4>0.2.2<\/h4>\n\n<ol>\n<li>fix bug in no default plugin directory, merge <a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/pull\/4\">Request 4<\/a> <a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/issues\/3\">Issues 3<\/a><\/li>\n<li>add maxcdn<\/li>\n<li>set jdfilvr .min css files<\/li>\n<\/ol>\n\n<h4>0.2.1<\/h4>\n\n<ol>\n<li>open ver 8.4 in baidu cdn,(lib is merged <a href=\"https:\/\/github.com\/Clouda-team\/baiducdnstatic\/pull\/48\">Request 48<\/a><\/li>\n<\/ol>\n\n<h4>0.2.0<\/h4>\n\n<ol>\n<li>close BBCode of [code] for default(<a href=\"https:\/\/github.com\/owt5008137\/WP-Code-Highlight.js\/issues\/1\">BUG #1<\/a>)<\/li>\n<li>update highlight.js to 8.4<\/li>\n<\/ol>\n\n<h4>0.1.8<\/h4>\n\n<ol>\n<li>tested under wordpress 4.1.0<\/li>\n<li>update highlight.js to 8.4<\/li>\n<\/ol>\n\n<h4>0.1.7<\/h4>\n\n<ol>\n<li>commit files to publish cdn and update cdn conf<\/li>\n<\/ol>\n\n<h4>0.1.6<\/h4>\n\n<ol>\n<li>upgrade highlight.js to 8.2<\/li>\n<li>add some cdn mirrors<\/li>\n<\/ol>\n\n<h4>0.1.5<\/h4>\n\n<ol>\n<li>tested under wordpress 4.0.0<\/li>\n<\/ol>\n\n<h4>0.1.4<\/h4>\n\n<ol>\n<li>fix $(document).ready() not actived in some mobile browser<\/li>\n<\/ol>\n\n<h4>0.1.3<\/h4>\n\n<ol>\n<li>add Baidu CDN<\/li>\n<li>fix jsDelivr CDN address<\/li>\n<\/ol>\n\n<h4>0.1.2<\/h4>\n\n<ol>\n<li>add support for syntaxhighlighter<\/li>\n<li>add support for prettify<\/li>\n<li>fix some translation problems<\/li>\n<\/ol>\n\n<h4>0.1.0<\/h4>\n\n<p>create<\/p>","raw_excerpt":"This plugin allow you to use highlight.js to highlight codes on any wordpress page.\nAnd you can easily migrate from SynaxHighlight, Google Prettify or &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29936"}],"author":[{"embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/owt5008137"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29936"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29936"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29936"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29936"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29936"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}