{"id":196956,"date":"2026-05-21T01:20:51","date_gmt":"2026-05-21T01:20:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-code-block-highlighter\/"},"modified":"2026-05-21T11:35:45","modified_gmt":"2026-05-21T11:35:45","slug":"simple-code-block-highlighter","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/simple-code-block-highlighter\/","author":20573418,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.2","stable_tag":"1.2.2","tested":"7.0","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Simple Code Block Highlighter","header_author":"TechGrapple","header_description":"Enhances the default WordPress code block with line numbers, copy functionality, and theme options.","assets_banners_color":"7a645b","last_updated":"2026-05-21 11:35:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.techgrapple.com\/simple-code-block-highlighter-free-plugin-for-wordpress\/","header_author_uri":"https:\/\/www.zoheb.org\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":131,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.0":{"tag":"1.2.0","author":"zohebtg","date":"2026-05-21 01:20:38"},"1.2.1":{"tag":"1.2.1","author":"zohebtg","date":"2026-05-21 11:15:02"},"1.2.2":{"tag":"1.2.2","author":"zohebtg","date":"2026-05-21 11:35:45"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3540412,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3540412,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3540412,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3540412,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.0","1.2.1","1.2.2"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":3541722,"resolution":"1","location":"assets","locale":"","width":1502,"height":1028},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":3541722,"resolution":"2","location":"assets","locale":"","width":1540,"height":1054}},"screenshots":{"1":"Frontend code block with syntax highlighting, line numbers, and copy button.","2":"Plugin settings page with display options."}},"plugin_section":[],"plugin_tags":[1214,24363,188921,4444,2207],"plugin_category":[],"plugin_contributors":[263766],"plugin_business_model":[],"class_list":["post-196956","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-code-block","plugin_tags-copy-button","plugin_tags-highlighter","plugin_tags-syntax","plugin_contributors-zohebtg","plugin_committers-zohebtg"],"banners":{"banner":"https:\/\/ps.w.org\/simple-code-block-highlighter\/assets\/banner-772x250.png?rev=3540412","banner_2x":"https:\/\/ps.w.org\/simple-code-block-highlighter\/assets\/banner-1544x500.png?rev=3540412","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/simple-code-block-highlighter\/assets\/icon-128x128.png?rev=3540412","icon_2x":"https:\/\/ps.w.org\/simple-code-block-highlighter\/assets\/icon-256x256.png?rev=3540412","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-code-block-highlighter\/assets\/screenshot-1.jpg?rev=3541722","caption":"Frontend code block with syntax highlighting, line numbers, and copy button."},{"src":"https:\/\/ps.w.org\/simple-code-block-highlighter\/assets\/screenshot-2.jpg?rev=3541722","caption":"Plugin settings page with display options."}],"raw_content":"<!--section=description-->\n<p>Simple Code Block Highlighter enhances the default WordPress code and preformatted blocks. It can show line numbers, add a copy-to-clipboard button, switch between light and dark display themes, and automatically color code blocks with bundled Highlight.js syntax highlighting.<\/p>\n\n<p>The plugin uses the WordPress Settings API, validates and sanitizes saved options, escapes admin output, and avoids inline JavaScript-generated HTML for line numbers. Syntax highlighting is served from the plugin files and does not load a third-party CDN on visitor pages.<\/p>\n\n<p>For setup help, read the <a href=\"https:\/\/www.techgrapple.com\/simple-code-block-highlighter-free-plugin-for-wordpress\/\">Simple Code Block Highlighter guide<\/a>.<\/p>\n\n<h3>Third-party Libraries<\/h3>\n\n<p>This plugin bundles Highlight.js 11.11.1 for syntax highlighting.<\/p>\n\n<p>Highlight.js\nSource: <a href=\"https:\/\/github.com\/highlightjs\/highlight.js\">Highlight.js on GitHub<\/a>\nLicense: BSD 3-Clause\nLicense file included at: assets\/vendor\/highlightjs\/LICENSE<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/simple-code-block-highlighter<\/code>.<\/li>\n<li>Activate the plugin from the WordPress Plugins screen.<\/li>\n<li>Go to Settings &gt; Simple Code Block Highlighter to choose display options. Color Code Blocks is checked by default.<\/li>\n<li>Add a WordPress Code block, paste any code you like, and the plugin will work out of the box.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20use%20the%20plugin%3F\"><h3>How do I use the plugin?<\/h3><\/dt>\n<dd><p>Add a WordPress Code block (<code>&lt;code&gt;<\/code>) in the editor, paste any code you like, and publish or preview the post. The plugin automatically detects the language and highlights the block out of the box.<\/p><\/dd>\n<dt id=\"where%20can%20i%20find%20setup%20instructions%3F\"><h3>Where can I find setup instructions?<\/h3><\/dt>\n<dd><p>Read the <a href=\"https:\/\/www.techgrapple.com\/simple-code-block-highlighter-free-plugin-for-wordpress\/\">Simple Code Block Highlighter guide<\/a> for full setup and usage instructions.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20store%20visitor%20data%3F\"><h3>Does this plugin store visitor data?<\/h3><\/dt>\n<dd><p>No. The plugin only stores administrator-selected display settings in the WordPress options table.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20change%20the%20original%20post%20content%3F\"><h3>Does this plugin change the original post content?<\/h3><\/dt>\n<dd><p>No. Code blocks are enhanced in the browser after the page loads. The saved post content is not modified.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20detect%20code%20automatically%3F\"><h3>Does the plugin detect code automatically?<\/h3><\/dt>\n<dd><p>Yes. The plugin auto-detects the code type every time, so no extra setup is needed.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Tested with the latest version of WordPress 7.0.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Switched syntax highlighting to automatic language detection only.<\/li>\n<li>Updated settings instructions and kept Color Code Blocks enabled by default.<\/li>\n<li>Updated usage FAQ.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added bundled Highlight.js syntax highlighting for common languages.<\/li>\n<li>Added automatic language detection for every highlighted code block.<\/li>\n<li>Added a setting to enable or disable color code blocks.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Hardened settings validation, sanitization, escaping, and capability checks.<\/li>\n<li>Removed unsafe JavaScript <code>innerHTML<\/code> line-number rendering.<\/li>\n<li>Added cache-busted asset versions and cleaner copy-button behavior.<\/li>\n<li>Added GitHub-ready security, CI, ignore, and documentation files.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Enhances WordPress code blocks with line numbers, copy functionality, automatic syntax highlighting, and light or dark themes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/196956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=196956"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/zohebtg"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=196956"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=196956"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=196956"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=196956"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=196956"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=196956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}