Апісанне
Zeddotes Enhanced Code Block adds inspector controls to the WordPress core Code block:
- Language select with Prism.js highlighting in the editor and on the frontend
- Optional line numbers
- Tab key indents inside the block (Shift+Tab outdents); optional spaces instead of tabs
- Configurable tab size (2 / 4 / 8)
- Optional copy button before or after the code block, aligned left / center / right (or hidden)
No separate block type — authors keep using the standard Code block.
Ўсталёўка
- Upload the plugin folder to
/wp-content/plugins/zeddotes-enhanced-code-block(or this directory name). - Run
npm installandnpm run buildifbuild/is not present. - Activate the plugin through the Plugins screen.
- Insert a Code block and open the Zeddotes Enhanced Code Block panel in the sidebar.
Часта задаваныя пытанні
-
Does this replace the core Code block?
-
No. It extends
core/codevia block filters. -
Where does highlighting run?
-
In the block editor and on the frontend, via a bundled Prism.js build.
Водгукі
На гэты плагін няма водгукаў.
Удзельнікі і распрацоўшчыкі
“Zeddotes Enhanced Code Block” з’яўляецца праграмным забеспячэннем з адкрытым зыходным кодам. Наступныя людзі ўнеслі свой уклад у гэты плагін.
УдзельнікіПеракласці “Zeddotes Enhanced Code Block” на вашу мову.
Зацікаўлены ў распрацоўцы?
Праглядзіце код, праверце SVN рэпазітарый, або падпішыцеся на журнал распрацоўкі па RSS.
Журнал змяненняў
1.0.0
- Initial release: language select, Prism highlighting, configurable copy button.