{"id":237210,"date":"2025-06-11T19:22:58","date_gmt":"2025-06-11T19:22:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/code-syntax-highlighting-block\/"},"modified":"2025-11-29T10:44:49","modified_gmt":"2025-11-29T10:44:49","slug":"code-syntax-highlighting-block","status":"publish","type":"plugin","link":"https:\/\/sv.wordpress.org\/plugins\/code-syntax-highlighting-block\/","author":23305454,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.2","stable_tag":"1.1.2","tested":"6.8.5","requires":"6.7","requires_php":"8.1","requires_plugins":null,"header_name":"Code Syntax Highlighting Block","header_author":"hbgl","header_description":"Block for displaying computer code with syntax highlighting.","assets_banners_color":"1e1e1e","last_updated":"2025-11-29 10:44:49","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/hbgl.dev","rating":0,"author_block_rating":0,"active_installs":0,"downloads":459,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"hbgl","date":"2025-06-11 19:22:30"},"1.1.0":{"tag":"1.1.0","author":"hbgl","date":"2025-06-18 19:47:15"},"1.1.1":{"tag":"1.1.1","author":"hbgl","date":"2025-06-21 18:06:05"},"1.1.2":{"tag":"1.1.2","author":"hbgl","date":"2025-11-29 10:44:49"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3310016,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3310016,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":3310016,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3310012,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3310012,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"code-syntax-highlighting-block\/code-syntax-highlighting-block":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"code-syntax-highlighting-block\/code-syntax-highlighting-block","version":"1.1.2","title":"Code with Syntax Highlighting","category":"text","icon":"editor-code","description":"Display computer code with syntax highlighting.","example":{},"supports":{"html":false,"typography":{"fontSize":true,"lineHeight":true,"textAlign":false}},"textdomain":"code-syntax-highlighting-block","editorScript":"file:.\/index.js","attributes":{"code":{"type":"string","default":""},"codeHighlightedHtml":{"type":"string","default":""},"language":{"type":"string","default":""},"theme":{"type":"string","default":""},"themeLight":{"type":"string","default":""},"themeDark":{"type":"string","default":""}}}},"tagged_versions":["1.0.0","1.1.0","1.1.1","1.1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3310012,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3314139,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"A demo of syntax-highlighted PHP code.","2":"A demo of editing the block in the Gutenberg editor."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,4609],"plugin_category":[],"plugin_contributors":[243538],"plugin_business_model":[],"class_list":["post-237210","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-syntax-highlighting","plugin_contributors-hbgl","plugin_committers-hbgl"],"banners":{"banner":"https:\/\/ps.w.org\/code-syntax-highlighting-block\/assets\/banner-772x250.png?rev=3310012","banner_2x":"https:\/\/ps.w.org\/code-syntax-highlighting-block\/assets\/banner-1544x500.png?rev=3310012","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/code-syntax-highlighting-block\/assets\/icon.svg?rev=3310016","icon":"https:\/\/ps.w.org\/code-syntax-highlighting-block\/assets\/icon.svg?rev=3310016","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/code-syntax-highlighting-block\/assets\/screenshot-1.png?rev=3310012","caption":"A demo of syntax-highlighted PHP code."},{"src":"https:\/\/ps.w.org\/code-syntax-highlighting-block\/assets\/screenshot-2.png?rev=3314139","caption":"A demo of editing the block in the Gutenberg editor."}],"raw_content":"<!--section=description-->\n<p>A Wordpress plugin that provides a Gutenberg block for displaying computer source code with syntax-highlighting. Uses <a href=\"https:\/\/highlightjs.org\/\">highlight.js<\/a> under the hood.<\/p>\n\n<ul>\n<li>\u2705 Supports 192 languages<\/li>\n<li>\u2705 256 included themes<\/li>\n<li>\u2705 Server rendered static HTML<\/li>\n<li>\u2705 Zero JS runtime dependencies<\/li>\n<li>\u2705 Dynamic light\/dark mode based on <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/@media\/prefers-color-scheme\">preferred color scheme<\/a><\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id='why%20no%20line%20numbers%3F'><h3>Why no line numbers?<\/h3><\/dt>\n<dd><p><a href=\"https:\/\/highlightjs.readthedocs.io\/en\/latest\/line-numbers.html\">Because highlight.js does not have them.<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Updated Codemirror code editor in Gutenberg to latest version<\/li>\n<li>Updated internal dependencies<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Added option for setting global default line height<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added better code editor<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Release<\/li>\n<\/ul>","raw_excerpt":"A Gutenberg block for syntax-higlighted code.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/237210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=237210"}],"author":[{"embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hbgl"}],"wp:attachment":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=237210"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=237210"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=237210"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=237210"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=237210"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=237210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}