[WordPress] 外掛分享: QOT Code Styler

首頁 › 外掛目錄 › QOT Code Styler
WordPress 外掛 QOT Code Styler 的封面圖片
全新外掛
安裝啟用
—
尚無評分
11 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.0 上架:2026-11-18

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「QOT Code Styler」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.
It works with the standard WordPress Code block and classic

 code, so there is no special block to learn and nothing to change in your posts.
What you get

A clean code window with a header bar, rounded corners and comfortable spacing.
Syntax colours for comments, quoted text, HTML tags, attributes, keywords and numbers. Works well for HTML, CSS, JavaScript, PHP, Python and shell commands.
A Copy button on every code block. One click copies the code, ready to paste.
Three looks: Dark, Light, or Automatic, which follows each visitor’s light or dark mode.
Your own colours. Pick any of the 8 colours with the WordPress colour picker and watch a live preview as you go.
Mobile friendly. Long lines wrap on phones, or turn wrapping off to scroll sideways like a code editor.
Inline code and keyboard keys. A file_name.php inside a sentence gets a neat highlight, and Ctrl + C looks like real keys. Both blend in with any theme, light or dark.
Clean post summaries. On home pages and archives that show short post summaries, code is left out, so it never spills into the summary as messy text.
Readable by everyone. The built-in colours meet the WCAG AA contrast level.

Why it is light and fast

One small stylesheet and one tiny script, with no outside library.
Loads only on pages that show code. Other pages get nothing extra.
Turn off the colours and the Copy button and it loads no JavaScript at all.
No special block or shortcode, so nothing breaks if you ever switch it off. Your code simply goes back to your theme’s style.

Made by Quick Online Tips, tech help that works since 2004. See the QOT Code Styler plugin page for more.

延伸相關外掛

文章
Filter
Mastodon