
外掛標籤
開發者團隊
原文外掛簡介
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 getA 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.
延伸相關外掛
