{"id":106270,"date":"2019-07-13T09:39:49","date_gmt":"2019-07-13T09:39:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/code-sample-with-prism-js\/"},"modified":"2022-08-24T21:30:16","modified_gmt":"2022-08-24T21:30:16","slug":"alkanecode","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/alkanecode\/","author":17318420,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.9","stable_tag":"1.0.9","tested":"6.0.11","requires":"3.9","requires_php":"5.6","requires_plugins":"","header_name":"Alkane Code","header_author":"Alkane Solutions Ltd","header_description":"Adds the Code Sample plugin to TinyMCE. Provides syntax highlighting with Prism.js.","assets_banners_color":"568518","last_updated":"2022-08-24 21:30:16","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.alkanesolutions.co.uk\/","header_plugin_uri":"https:\/\/www.alkanesolutions.co.uk\/blog\/2019\/07\/06\/alkane-code-tinymce-code-editor-prism-syntax-highlighting\/","header_author_uri":"https:\/\/www.alkanesolutions.co.uk\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":20952,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"alkanesolutions","date":"2019-07-13 10:32:35"},"1.0.3":{"tag":"1.0.3","author":"alkanesolutions","date":"2019-07-13 10:50:08"},"1.0.4":{"tag":"1.0.4","author":"alkanesolutions","date":"2019-07-14 20:34:40"},"1.0.5":{"tag":"1.0.5","author":"alkanesolutions","date":"2019-07-31 19:25:20"},"1.0.6":{"tag":"1.0.6","author":"alkanesolutions","date":"2020-06-07 17:27:21"},"1.0.7":{"tag":"1.0.7","author":"alkanesolutions","date":"2022-06-08 18:15:34"},"1.0.8":{"tag":"1.0.8","author":"alkanesolutions","date":"2022-06-09 20:10:12"},"1.0.9":{"tag":"1.0.9","author":"alkanesolutions","date":"2022-08-24 21:30:16"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2122461,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2122462,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2122460,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2122459,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2122463,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2122464,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2122465,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2122472,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Alkane Code button in TinyMCE.","2":"Alkane Code code editor in TinyMCE.","3":"Prism.js syntax highlighting.","4":"Alkane Code settings page."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[173872,4541,20765,7527,7526],"plugin_category":[],"plugin_contributors":[173873],"plugin_business_model":[],"class_list":["post-106270","plugin","type-plugin","status-publish","hentry","plugin_tags-alkane-code","plugin_tags-code-editor","plugin_tags-crayon","plugin_tags-prism","plugin_tags-syntax-highlighter","plugin_contributors-alkanesolutions","plugin_committers-alkanesolutions"],"banners":{"banner":"https:\/\/ps.w.org\/alkanecode\/assets\/banner-772x250.png?rev=2122459","banner_2x":"https:\/\/ps.w.org\/alkanecode\/assets\/banner-1544x500.png?rev=2122460","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/alkanecode\/assets\/icon-128x128.png?rev=2122461","icon_2x":"https:\/\/ps.w.org\/alkanecode\/assets\/icon-256x256.png?rev=2122462","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/alkanecode\/assets\/screenshot-1.png?rev=2122463","caption":"Alkane Code button in TinyMCE."},{"src":"https:\/\/ps.w.org\/alkanecode\/assets\/screenshot-2.png?rev=2122464","caption":"Alkane Code code editor in TinyMCE."},{"src":"https:\/\/ps.w.org\/alkanecode\/assets\/screenshot-3.png?rev=2122465","caption":"Prism.js syntax highlighting."},{"src":"https:\/\/ps.w.org\/alkanecode\/assets\/screenshot-4.png?rev=2122472","caption":"Alkane Code settings page."}],"raw_content":"<!--section=description-->\n<p>Alkane Code is a user-friendly, lightweight code editor for TinyMCE that adds 'language-' classes to HTML code elements.  It can be used to add inline code as well as block code, and syntax highlighting at the front-end is performed using Prism.js with auto-loaded languages.  It does not support the Gutenberg editor.  You will need to install the 'Classic Editor' plugin to use this code editor.<\/p>\n\n<p><strong>More Information<\/strong><\/p>\n\n<p><a href=\"https:\/\/www.alkanesolutions.co.uk\/blog\/2019\/07\/06\/alkane-code-tinymce-code-editor-prism-syntax-highlighting\/\">Alkane Code homepage<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload \"alkanecode\" to the \"\/wp-content\/plugins\/\" directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Configure from Settings &gt; Alkane Code Settings.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Updated readme.txt.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Updated description of plugin.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Updated description of plugin.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Added prism .map files.  Renamed settings menu entry.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Added tab support in editor plus various bug fixes.<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Set block level code to default as opposed to inline.<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Disabled on mobile devices, since it slows page load down for larger scripts.<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Re-enabled on mobile devices, but forcefully renders as 'markup' language for faster loading.<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>Bug fixes for when theme and languages selections are initially undefined.<\/li>\n<\/ul>","raw_excerpt":"A TinyMCE code editor with Prism syntax highlighting.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/106270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=106270"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/alkanesolutions"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=106270"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=106270"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=106270"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=106270"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=106270"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=106270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}