{"id":394817,"date":"2026-11-19T07:34:51","date_gmt":"2026-11-19T07:34:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/quick-code-styler\/"},"modified":"2026-11-19T07:34:34","modified_gmt":"2026-11-19T07:34:34","slug":"qot-code-styler","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/qot-code-styler\/","author":144260,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"1.0","tested":"7.1.5","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"QOT Code Styler","header_author":"Quick Online Tips","header_description":"Code windows with syntax colours and a Copy button, plus clean inline code and keyboard keys. Dark, light or automatic. Tiny, no outside library.","last_updated":"2026-11-19 07:34:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.quickonlinetips.com\/archives\/qot-code-styler-wordpress-plugin\/","header_author_uri":"https:\/\/www.quickonlinetips.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":30,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"pchere","date":"2026-11-19 07:34:34","revision":3810887}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3810887,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3810887,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3810887,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3810887,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3810887,"resolution":"1","location":"assets","locale":"","width":1200,"height":908},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3810887,"resolution":"2","location":"assets","locale":"","width":1200,"height":908},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3810887,"resolution":"3","location":"assets","locale":"","width":1400,"height":1300},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3810887,"resolution":"4","location":"assets","locale":"","width":780,"height":828}},"screenshots":{"1":"A code block with syntax colours and the Copy button, in the Dark look.","2":"The same post in the Light look.","3":"The settings page, with a live preview.","4":"On a phone, long lines wrap so there is no sideways scrolling."}},"plugin_section":[],"plugin_tags":[1214,24363,188921,173231,4609],"plugin_category":[],"plugin_contributors":[83538],"plugin_business_model":[],"class_list":["post-394817","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-code-block","plugin_tags-copy-button","plugin_tags-dark-mode","plugin_tags-syntax-highlighting","plugin_contributors-pchere","plugin_committers-pchere"],"banners":{"banner":"https:\/\/ps.w.org\/qot-code-styler\/assets\/banner-772x250.png?rev=3810887","banner_2x":"https:\/\/ps.w.org\/qot-code-styler\/assets\/banner-1544x500.png?rev=3810887","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/qot-code-styler\/assets\/icon-128x128.png?rev=3810887","icon_2x":"https:\/\/ps.w.org\/qot-code-styler\/assets\/icon-256x256.png?rev=3810887","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/qot-code-styler\/assets\/screenshot-1.png?rev=3810887","caption":"A code block with syntax colours and the Copy button, in the Dark look."},{"src":"https:\/\/ps.w.org\/qot-code-styler\/assets\/screenshot-2.png?rev=3810887","caption":"The same post in the Light look."},{"src":"https:\/\/ps.w.org\/qot-code-styler\/assets\/screenshot-3.png?rev=3810887","caption":"The settings page, with a live preview."},{"src":"https:\/\/ps.w.org\/qot-code-styler\/assets\/screenshot-4.png?rev=3810887","caption":"On a phone, long lines wrap so there is no sideways scrolling."}],"raw_content":"<!--section=description-->\n<p>QOT Code Styler makes the code in your posts easy to read and easy to copy. Activate it and every code block on your site gets a clean code window, syntax colours and a Copy button, in new posts and old ones.<\/p>\n\n<p>It works with the standard WordPress Code block and classic <code>&lt;pre&gt;<\/code> code, so there is no special block to learn and nothing to change in your posts.<\/p>\n\n<p><strong>What you get<\/strong><\/p>\n\n<ul>\n<li><strong>A clean code window<\/strong> with a header bar, rounded corners and comfortable spacing.<\/li>\n<li><strong>Syntax colours<\/strong> for comments, quoted text, HTML tags, attributes, keywords and numbers. Works well for HTML, CSS, JavaScript, PHP, Python and shell commands.<\/li>\n<li><strong>A Copy button<\/strong> on every code block. One click copies the code, ready to paste.<\/li>\n<li><strong>Three looks:<\/strong> Dark, Light, or Automatic, which follows each visitor's light or dark mode.<\/li>\n<li><strong>Your own colours.<\/strong> Pick any of the 8 colours with the WordPress colour picker and watch a live preview as you go.<\/li>\n<li><strong>Mobile friendly.<\/strong> Long lines wrap on phones, or turn wrapping off to scroll sideways like a code editor.<\/li>\n<li><strong>Inline code and keyboard keys.<\/strong> A <code>file_name.php<\/code> inside a sentence gets a neat highlight, and <code>&lt;kbd&gt;Ctrl&lt;\/kbd&gt; + &lt;kbd&gt;C&lt;\/kbd&gt;<\/code> looks like real keys. Both blend in with any theme, light or dark.<\/li>\n<li><strong>Clean post summaries.<\/strong> On home pages and archives that show short post summaries, code is left out, so it never spills into the summary as messy text.<\/li>\n<li><strong>Readable by everyone.<\/strong> The built-in colours meet the WCAG AA contrast level.<\/li>\n<\/ul>\n\n<p><strong>Why it is light and fast<\/strong><\/p>\n\n<ul>\n<li>One small stylesheet and one tiny script, with no outside library.<\/li>\n<li>Loads only on pages that show code. Other pages get nothing extra.<\/li>\n<li>Turn off the colours and the Copy button and it loads no JavaScript at all.<\/li>\n<li>No special block or shortcode, so nothing breaks if you ever switch it off. Your code simply goes back to your theme's style.<\/li>\n<\/ul>\n\n<p>Made by Quick Online Tips, tech help that works since 2004. See the <a href=\"https:\/\/www.quickonlinetips.com\/archives\/qot-code-styler-wordpress-plugin\/\">QOT Code Styler plugin page<\/a> for more.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>In your WordPress dashboard, go to Plugins &gt; Add New and search for \"QOT Code Styler\".<\/li>\n<li>Click Install Now, then Activate.<\/li>\n<li>That's it. Open any post that has code to see the new look.<\/li>\n<li>To change the look or colours, go to Settings &gt; QOT Code Styler.<\/li>\n<\/ol>\n\n<p>To install by hand, upload the <code>qot-code-styler<\/code> folder to <code>\/wp-content\/plugins\/<\/code> and activate it on the Plugins screen.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"which%20languages%20are%20coloured%3F\"><h3>Which languages are coloured?<\/h3><\/dt>\n<dd><p>The colouring is simple and general, so it suits most short code you would show in a blog post: HTML, CSS, JavaScript, PHP, Python, shell commands and similar. It colours comments, quoted text, HTML tags, attributes, common keywords and numbers. It does not need you to pick a language.<\/p><\/dd>\n<dt id=\"how%20is%20this%20different%20from%20a%20full%20syntax%20highlighter%3F\"><h3>How is this different from a full syntax highlighter?<\/h3><\/dt>\n<dd><p>Full highlighters understand hundreds of languages in detail, but load much larger files. QOT Code Styler is made for blogs, tutorials and how-to guides, where code is usually short. It gives you most of the look for a fraction of the weight.<\/p><\/dd>\n<dt id=\"how%20do%20i%20show%20a%20keyboard%20key%3F\"><h3>How do I show a keyboard key?<\/h3><\/dt>\n<dd><p>Wrap the key in kbd tags, for example <code>&lt;kbd&gt;Ctrl&lt;\/kbd&gt;<\/code>. In the block editor, use Edit as HTML on the paragraph.<\/p><\/dd>\n<dt id=\"can%20i%20change%20the%20colours%3F\"><h3>Can I change the colours?<\/h3><\/dt>\n<dd><p>Yes. Go to Settings &gt; QOT Code Styler, choose Dark or Light, and pick your own colours. A preview shows the result before you save. Click Default under any colour to undo a change.<\/p><\/dd>\n<dt id=\"what%20does%20automatic%20do%3F\"><h3>What does Automatic do?<\/h3><\/dt>\n<dd><p>It shows the light code window to visitors who use light mode on their phone or computer, and the dark one to visitors who use dark mode.<\/p><\/dd>\n<dt id=\"can%20i%20turn%20off%20the%20javascript%3F\"><h3>Can I turn off the JavaScript?<\/h3><\/dt>\n<dd><p>Yes. Turn off both Syntax colours and Copy button in the settings, and the plugin loads only its stylesheet.<\/p><\/dd>\n<dt id=\"my%20page%20builder%27s%20code%20is%20not%20styled.\"><h3>My page builder's code is not styled.<\/h3><\/dt>\n<dd><p>The plugin looks for code in the post content. If your builder stores content elsewhere, add this to your theme's functions.php to load the styles on every page:<\/p>\n\n<pre><code>add_filter( 'qot_code_styler_load', '__return_true' );\n<\/code><\/pre><\/dd>\n<dt id=\"does%20it%20slow%20my%20site%20down%3F\"><h3>Does it slow my site down?<\/h3><\/dt>\n<dd><p>No. It adds one small stylesheet and one tiny script, only on pages that show code.<\/p><\/dd>\n<dt id=\"where%20can%20i%20send%20feedback%3F\"><h3>Where can I send feedback?<\/h3><\/dt>\n<dd><p>Please use the support forum on WordPress.org, or the plugin page above.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Beautiful code blocks with syntax colours and a Copy button. Dark, light or automatic. Tiny, fast, and works with the code you already have.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/394817","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=394817"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pchere"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=394817"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=394817"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=394817"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=394817"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=394817"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=394817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}