{"id":130078,"date":"2020-10-16T07:31:29","date_gmt":"2020-10-16T07:31:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/code-block\/"},"modified":"2020-10-16T07:31:05","modified_gmt":"2020-10-16T07:31:05","slug":"code-block","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/code-block\/","author":17849951,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"5.5.18","requires":"5.0","requires_php":"","requires_plugins":"","header_name":"Code Block","header_author":"Jerome Paulos","header_description":"A Gutenberg block for displaying code with syntax highlighting.","assets_banners_color":"","last_updated":"2020-10-16 07:31:05","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/jxxe\/code-block","header_author_uri":"https:\/\/jeromepaulos.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1336,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128.png":{"filename":"icon-128.png","revision":2400671,"resolution":"128","location":"assets","locale":""},"icon-256.png":{"filename":"icon-256.png","revision":2400671,"resolution":"256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2400671,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"jxxe\/code-block":{"name":"jxxe\/code-block","title":"Code Block"}},"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2400671,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2400671,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"The editor block","2":"The result"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,6984,19387,3986,2207],"plugin_category":[],"plugin_contributors":[185154],"plugin_business_model":[],"class_list":["post-130078","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-format","plugin_tags-formatter","plugin_tags-highlight","plugin_tags-syntax","plugin_contributors-jeromepaulos","plugin_committers-jeromepaulos"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/code-block\/assets\/icon.svg?rev=2400671","icon":"https:\/\/ps.w.org\/code-block\/assets\/icon.svg?rev=2400671","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/code-block\/assets\/screenshot-1.png?rev=2400671","caption":"The editor block"},{"src":"https:\/\/ps.w.org\/code-block\/assets\/screenshot-2.png?rev=2400671","caption":"The result"}],"raw_content":"<!--section=description-->\n<p>This plugin uses <a href=\"https:\/\/prismjs.com\">Prism.js<\/a> and a port of the beautiful Atom One Dark code theme with the Fira Code font.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Syntax highlighting<\/li>\n<li>Tab support<\/li>\n<li>Special glyphs for arrow functions, operators, etc<\/li>\n<li>Nice interface<\/li>\n<li>17+ languages supported<\/li>\n<\/ul>\n\n<h4>Supported Languages<\/h4>\n\n<ul>\n<li>HTML<\/li>\n<li>CSS<\/li>\n<li>JavaScript<\/li>\n<li>Python<\/li>\n<li>PHP<\/li>\n<li>Ruby<\/li>\n<li>SCSS<\/li>\n<li>C<\/li>\n<li>C++<\/li>\n<li>C#<\/li>\n<li>Objective-C<\/li>\n<li>TypeScript<\/li>\n<li>Swift<\/li>\n<li>Go<\/li>\n<li>JSON<\/li>\n<li>SQL<\/li>\n<li>Bash<\/li>\n<\/ul>\n\n<p>Want to contribute? Check out the <a href=\"https:\/\/github.com\/jxxe\/code-block\">GitHub repository<\/a>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt><h3>What if [insert favorite langauge] isn't supported?<\/h3><\/dt>\n<dd><p>I've tried my best to include the some of the most common programming languages, but there's a change that yours isn't supported! There are two things you could try. First, many programming langauge syntaxes are very similar. Play around with different languages and see if any produce a good enough result. Give a member of the C family a try. Alternatively, you can fork the repository on GitHub and add it yourself. As long as there's enough demand and Prism.js supports it, you should be good to go!<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>1.0 - Initial Release<\/p>","raw_excerpt":"A simple and nice-looking Gutenberg block for displaying code snippets.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/130078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=130078"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jeromepaulos"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=130078"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=130078"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=130078"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=130078"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=130078"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=130078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}