跳到内容

Easy Syntax Highlighter

v2.0.0

tiptinker · 2017年6月28日 上架

Modern, lightweight syntax highlighter for WordPress using Highlight.js

正在使用
30+
评分
暂无
累计下载
2,284
最近更新
2026年3月27日
需要 WordPress 5.0+已测试到 6.9.12PHP 7.0+

贡献者

截图

Settings Page
Settings Page
Gutenberg Block
Gutenberg Block
Classic Editor
Classic Editor
Frontend Display
Frontend Display

Easy Syntax Highlighter is a powerful WordPress plugin that helps improve your website’s code presentation by providing beautiful syntax highlighting. Using the latest Highlight.js library, it supports over 20 programming languages with 80+ color themes, copy-to-clipboard functionality, and seamless integration with both classic and Gutenberg editors.

Features

  • Modern Highlight.js Engine: Uses the latest Highlight.js library for fast, accurate syntax highlighting
  • 80+ Themes Included: Over 80 themes for both light and dark modes, all stored locally for offline compatibility
  • Unlimited Language Support: Supports 20+ programming languages including JavaScript, PHP, Python, CSS, HTML, SQL, Bash, and more
  • Modern JavaScript: Promise-based loading with proper error handling and performance optimizations
  • Performance Optimized: Smart asset loading—only loads when code blocks are present on the page
  • Security Focused: Proper input sanitization and output escaping
  • Admin Interface: Clean, modern settings page with visual theme selector integrated with WordPress admin
  • Localization Ready: Translation-ready with proper text domains
  • Backward Compatible: Automatic migration from old plugin versions

How to Use

  1. Gutenberg Block Editor: Use the default WordPress “Code” block. The plugin automatically detects the language and highlights it. There is no language setting in the sidebar; detection is automatic. If you need to force a language, edit the block as HTML and add a class to the <code> element (e.g., <code class="language-php">).
  2. Classic Editor: Use the TinyMCE button (code icon) with the modal dialog for easy code insertion.
  3. Copy to Clipboard: Double-click any code block to instantly copy its content with visual feedback.

Use Cases

  • Technical blogs and tutorials
  • Documentation websites
  • Programming courses and educational content
  • Developer portfolios
  • API documentation
  • Code examples and snippets

Support

For support, bug reports, or feature requests, please visit: Github

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues on GitHub.

License

This plugin is licensed under the GPLv2 or later.
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums