{"id":51172,"date":"2016-09-29T10:37:34","date_gmt":"2016-09-29T10:37:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/cc-syntax-highlight\/"},"modified":"2022-03-16T14:21:43","modified_gmt":"2022-03-16T14:21:43","slug":"cc-syntax-highlight","status":"publish","type":"plugin","link":"https:\/\/bg.wordpress.org\/plugins\/cc-syntax-highlight\/","author":14605250,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.3","stable_tag":"trunk","tested":"5.9.13","requires":"4.6.1","requires_php":"7.0","requires_plugins":"","header_name":"CC-Syntax-Highlight","header_author":"Clearcode.cc","header_description":"","assets_banners_color":"c5dfea","last_updated":"2022-03-16 14:21:43","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/cc-syntax-highlight","header_author_uri":"http:\/\/clearcode.cc","rating":5,"author_block_rating":0,"active_installs":70,"downloads":4681,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"ClearcodeHQ","date":"2016-09-29 10:37:34"},"1.0.1":{"tag":"1.0.1","author":"ClearcodeHQ","date":"2016-10-03 12:24:52"},"1.1.0":{"tag":"1.1.0","author":"ClearcodeHQ","date":"2016-12-06 12:29:45"},"1.2.0":{"tag":"1.2.0","author":"ClearcodeHQ","date":"2018-06-21 13:02:53"},"1.2.1":{"tag":"1.2.1","author":"ClearcodeHQ","date":"2019-10-16 10:06:21"},"1.2.2":{"tag":"1.2.2","author":"ClearcodeHQ","date":"2019-10-23 11:16:12"},"1.2.3":{"tag":"1.2.3","author":"ClearcodeHQ","date":"2022-03-16 14:21:43"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1505027,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1505027,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1505027,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1505027,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2694869,"resolution":"1","location":"plugin"}},"screenshots":{"1":"<strong>CC-Syntax-Highlight Settings<\/strong> - Visit the 'Settings &gt; Syntax Highlight' page, select your preferred options and save them."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,11510,32776,8007,18593],"plugin_category":[],"plugin_contributors":[95640,95641],"plugin_business_model":[],"class_list":["post-51172","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-google-code-prettify","plugin_tags-highlight-js","plugin_tags-source-code","plugin_tags-syntax-highlight","plugin_contributors-clearcodehq","plugin_contributors-piotrpress","plugin_committers-clearcodehq","plugin_committers-piotrpress"],"banners":{"banner":"https:\/\/ps.w.org\/cc-syntax-highlight\/assets\/banner-772x250.png?rev=1505027","banner_2x":"https:\/\/ps.w.org\/cc-syntax-highlight\/assets\/banner-1544x500.png?rev=1505027","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/cc-syntax-highlight\/assets\/icon-128x128.png?rev=1505027","icon_2x":"https:\/\/ps.w.org\/cc-syntax-highlight\/assets\/icon-256x256.png?rev=1505027","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/cc-syntax-highlight\/trunk\/screenshot-1.png?rev=2694869","caption":"<strong>CC-Syntax-Highlight Settings<\/strong> - Visit the 'Settings &gt; Syntax Highlight' page, select your preferred options and save them."}],"raw_content":"<!--section=description-->\n<p>The CC-Syntax-Highlight plugin supports syntax highlighting of Posts, Pages, and any public Custom Post Types.\nIt uses <a href=\"https:\/\/highlightjs.org\/\">highlight.js<\/a> or <a href=\"https:\/\/github.com\/google\/code-prettify\">google-code-prettify<\/a> libraries.\nAdditionally it can use the <a href=\"https:\/\/clipboardjs.com\/\">clipboard.js<\/a> library to add a button that copies text to the clipboard and <a href=\"https:\/\/github.com\/wcoder\/highlightjs-line-numbers.js\/\">highlightjs-line-numbers.js<\/a> plugin to add line numbers.\nIt is delivered with support for shortcode (default [code] - you can change it on the settings page) which automatically converts all special characters to HTML entities.\nThis plugin is compatible with Multisite WordPress installations.<\/p>\n\n<h4>How does it work?<\/h4>\n\n<ol>\n<li>Go to the 'Settings &gt; Syntax Highlight' page, select your preferred options and save them.<\/li>\n<li>Simply add the source code to your post (or other selected public Custom Post Type) wrapped with:\n&lt;pre&gt;&lt;code&gt;Your source code&lt;\/code&gt;&lt;\/pre&gt;\nor if you would like to automatically convert all special characters to HTML entities, use shortcode wrapper instead (default [code] - you can change it on the settings page):\n&lt;pre&gt;[code]Your source code[\/code]&lt;\/pre&gt;<\/li>\n<\/ol>\n\n<p><em>Plugin's js scripts and css styles files only load if the source code occurs on displaying page.<\/em><\/p>\n\n<!--section=installation-->\n<h4>From your WordPress Dashboard<\/h4>\n\n<ol>\n<li>Go to 'Plugins &gt; Add New'<\/li>\n<li>Search for 'CC-Syntax-Highlight'<\/li>\n<li>Activate the plugin from the Plugin section on your WordPress Dashboard.<\/li>\n<\/ol>\n\n<h4>From WordPress.org<\/h4>\n\n<ol>\n<li>Download 'CC-Syntax-Highlight'.<\/li>\n<li>Upload the 'cc-syntax-highlight' directory to your '\/wp-content\/plugins\/' directory using your favorite method (ftp, sftp, scp, etc...)<\/li>\n<li>Activate the plugin from the Plugin section in your WordPress Dashboard.<\/li>\n<\/ol>\n\n<h4>Once Activated<\/h4>\n\n<ol>\n<li>Visit the 'Settings &gt; Syntax Highlight' page, select your preferred options and save them.<\/li>\n<\/ol>\n\n<h4>Multisite<\/h4>\n\n<p>The plugin can be activated and used for just about any use case.<\/p>\n\n<ul>\n<li>Activate at the site level to load the plugin on that site only.<\/li>\n<li>Activate at the network level for full integration with all sites in your network (this is the most common type of multisite installation).<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.2.3<\/h4>\n\n<p><em>Release date: 16.03.2022<\/em><\/p>\n\n<ul>\n<li>Added PHP 8.0 support.<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<p><em>Release date: 22.10.2019<\/em><\/p>\n\n<ul>\n<li>Fixed conflict with core clipboard wp script.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<p><em>Release date: 15.10.2019<\/em><\/p>\n\n<ul>\n<li>Added highlightjs-line-numbers.js plugin in 2.7.0 version.<\/li>\n<li>Updated highlight.js script to 9.15.10 version.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<p><em>Release date: 15.06.2018<\/em><\/p>\n\n<ul>\n<li>Fixed issue with wrong brackets interpretation.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<p><em>Release date: 05.12.2016<\/em><\/p>\n\n<ul>\n<li>Added support for \"copy-to-clipboard\" feature by using the clipboard.js library.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<p><em>Release date: 01.10.2016<\/em><\/p>\n\n<ul>\n<li>Corrected readme.txt file.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<p><em>Release date: 27.09.2016<\/em><\/p>\n\n<ul>\n<li>First stable version of the plugin.<\/li>\n<\/ul>","raw_excerpt":"This plugin allows you very simply syntax highlight source code in your content using highlight.js or google-code-prettify libraries.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51172"}],"author":[{"embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/clearcodehq"}],"wp:attachment":[{"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51172"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51172"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51172"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51172"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51172"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}