| 开发者 | snowbedding |
|---|---|
| 更新时间 | 2025年11月11日 19:45 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<code> element (e.g., <code class="language-php">)./wp-content/plugins/easy-syntax-highlighter/The plugin uses the powerful Highlight.js library to automatically find and highlight code within standard WordPress "Code" blocks. There's no need to look for a special block; just use the default one, and the plugin handles the rest.
The plugin supports: JavaScript, CSS, PHP, Python, Bash/Shell, SQL, Java, C++, C, C#, Ruby, Go, Rust, TypeScript, JSON, YAML, XML, HTML, Docker, Nginx, and plain text. Auto-detection is also available.
The plugin includes over 80 themes, including popular ones like GitHub, Monokai, Atom One, and many more. All themes are available in both light and dark variants.
Yes, the plugin works well with caching plugins and can complement them by ensuring proper asset loading and syntax highlighting even with cached content.
Yes! Go to Settings > Syntax Highlighter to choose from over 80 different color themes using a visual theme selector. The copy-on-double-click feature is enabled by default.
Yes, the plugin should work with any page builder that uses the standard WordPress "Code" block. For other cases, you might need to use a custom HTML block and wrap your code in <pre><code class="language-yourlanguage">...</code></pre>.
Line highlighting is not currently supported. This feature may be added in future updates.
Yes! The plugin only loads its scripts and styles on pages that actually contain a code block, making it very performant.