{"id":237151,"date":"2025-06-17T18:29:56","date_gmt":"2025-06-17T18:29:56","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/light-code-block\/"},"modified":"2025-12-27T11:48:14","modified_gmt":"2025-12-27T11:48:14","slug":"light-code-block","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/light-code-block\/","author":14626993,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"6.9.4","requires":"6.0","requires_php":"","requires_plugins":null,"header_name":"Light Code Block","header_author":"plance","header_description":"Adds a button to the TinyMCE editor to display a popup and enter code into it.","assets_banners_color":"fcfbfc","last_updated":"2025-12-27 11:48:14","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/plance.top\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":390,"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":"plance","date":"2025-06-17 18:30:56"},"1.0.1":{"tag":"1.0.1","author":"plance","date":"2025-06-18 19:45:31"},"1.0.2":{"tag":"1.0.2","author":"plance","date":"2025-12-27 11:48:14"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3313460,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3313460,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3313460,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3313460,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3313460,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3313460,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3313460,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3313460,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"The \"LC\" button in the Classic editor toolbar.","2":"Popup window for inserting\/editing code (Classic version).","3":"Popup window for inserting\/editing code (Gutenberg version).","4":"Example of a rendered code block on the front end."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,1332,8747,9663,4609],"plugin_category":[46],"plugin_contributors":[97064],"plugin_business_model":[],"class_list":["post-237151","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-editor","plugin_tags-source","plugin_tags-sourcecode","plugin_tags-syntax-highlighting","plugin_category-editor-and-writing","plugin_contributors-plance","plugin_committers-plance"],"banners":{"banner":"https:\/\/ps.w.org\/light-code-block\/assets\/banner-772x250.png?rev=3313460","banner_2x":"https:\/\/ps.w.org\/light-code-block\/assets\/banner-1544x500.png?rev=3313460","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/light-code-block\/assets\/icon-128x128.png?rev=3313460","icon_2x":"https:\/\/ps.w.org\/light-code-block\/assets\/icon-256x256.png?rev=3313460","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/light-code-block\/assets\/screenshot-1.png?rev=3313460","caption":"The \"LC\" button in the Classic editor toolbar."},{"src":"https:\/\/ps.w.org\/light-code-block\/assets\/screenshot-2.png?rev=3313460","caption":"Popup window for inserting\/editing code (Classic version)."},{"src":"https:\/\/ps.w.org\/light-code-block\/assets\/screenshot-3.png?rev=3313460","caption":"Popup window for inserting\/editing code (Gutenberg version)."},{"src":"https:\/\/ps.w.org\/light-code-block\/assets\/screenshot-4.png?rev=3313460","caption":"Example of a rendered code block on the front end."}],"raw_content":"<!--section=description-->\n<p>The \"Light Code Block\" plugin is a simple and lightweight solution for inserting and displaying code snippets in posts and pages.<br \/>\nIt works by adding a custom \"LC\" button to the TinyMCE (Classic) editor or a code block in the Gutenberg editor.<\/p>\n\n<p>The inserted code will be shown on the front end in a clean, readable format.<\/p>\n\n<h3>Usage<\/h3>\n\n<ul>\n<li>Install and activate the plugin.<\/li>\n<li>Go to the post or page edit screen.<\/li>\n<li>In the TinyMCE (Classic) editor, click the <strong>\"LC\"<\/strong> button in the toolbar.<\/li>\n<li>In the popup window that opens, paste or write your code, and click <strong>OK<\/strong>.<\/li>\n<li>Save or update your post.<\/li>\n<\/ul>\n\n<p>The code will be saved inside a special block and displayed on the front end within a <code>&lt;pre&gt;<\/code> tag with the class <code>mce-simple-code-block<\/code> (i.e., <code>&lt;pre class=\"mce-simple-code-block\"&gt;...&lt;\/pre&gt;<\/code>).<\/p>\n\n<p>To insert code using the Gutenberg editor, you first need to add a Classic (TinyMCE) block, and then use it to insert your code.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the \"Light Code Block\" plugin through the standard WordPress plugin installer.<\/li>\n<li>Or unzip and upload the \"light-code-block\" folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Tested up to WordPress 6.9<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>For backward compatibility, the class \"mce-simple-block-code\" has been added.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Init release.<\/li>\n<\/ul>","raw_excerpt":"The &quot;Light Code Block&quot; plugin is the simplest and lightest plugin for inserting and displaying code.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/237151","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=237151"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/plance"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=237151"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=237151"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=237151"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=237151"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=237151"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=237151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}