
內容簡介
這是 WordPress 編輯器中最漂亮的程式碼語法高亮外掛。
您可以在後台即時編輯程式碼片段,並具備括號配對功能,可使用超過 50 種不同的主題進行自定義顏色設置(包括 Base16、Monokai、Material、Zenburn、Hopscotch 等)。
與主要程式語言的兼容性十分出色,包括 HTML、CSS、JS、JSX、Stylus、Sass、PHP、Python、C、C++、C#、Java、XML、Shell、JSON、Go、Swift 等。
這個外掛使用 CodeMirror 作為核心編輯器。你可能以前在 Advanced Gutenberg Blocks 插件中看過這個程式碼塊。現在它是一個更新且獨立的程式碼塊。
第三方庫
此外掛使用以下第三方庫:
WordPress create-block by gziolo - https://www.npmjs.com/package/@wordpress/create-block
CodeMirror - https://github.com/codemirror/CodeMirror
react-codemirror2 by scniro - https://github.com/scniro/react-codemirror2
感謝這些庫的創建者和維護者!
外掛標籤
開發者團隊
② 後台搜尋「PrettyCode • Code syntax highlighting with CodeMirror」→ 直接安裝(推薦)
原文外掛簡介
The prettiest syntax highlighting block for the WordPress editor.
Live edit your code snippets in the admin with bracket matching, customize colors with more thant 50 themes (Base16, Monokai, Material, Zenburn, Hopscotch…).
Compatible with major languages: HTML, CSS, JS, JSX, Stylus, Sass, PHP, Python, C, C++, C#, Java, XML, Shell, JSON, Go, Swift…
This block uses CodeMirror. You may have seen this block before on the Advanced Gutenberg Blocks plugins few years ago. It’s now an updated and standalone block.
Third Party
This plugins uses some third party libraries:
WordPress create-block by gziolo – https://www.npmjs.com/package/@wordpress/create-block
CodeMirror – https://github.com/codemirror/CodeMirror
react-codemirror2 by scniro – https://github.com/scniro/react-codemirror2
A big thanks to their respective creators and maintainers!
