Descrição
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!
Blocos
Este plugin disponibiliza 1 bloco.
- PrettyCode A code syntax highlighting block for your snippets of all major languages.
Instalação
- Upload the plugin files to the
/wp-content/plugins/prettycodedirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Go to a post and click on ‘Add block’
- Search for ‘PrettyCode’
Perguntas frequentes
-
Which languages are available?
-
All major language are available: HTML, CSS, JS, JSX, Stylus, Sass, PHP, Python, C, C++, C#, Java, XML, Shell, JSON, Go, Swift…
-
Can I add more languages ?
-
Yes, by using the filter
prettycode_languages_list. -
Can I customize the appearance?
-
Sure! You have access to 50+ dark and light themes like Base16, Monokai, Material, Zenburn, Hopscotch…
-
Can I contribute?
-
Yep! The public repository is right here: https://github.com/maximebj/prettycode.plugin
Avaliações
Colaboradores e desenvolvedores
“PrettyCode • Code syntax highlighting with CodeMirror” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.
ColaboradoresPrettyCode • Code syntax highlighting with CodeMirror” foi traduzido para 1 localidade. Agradecemos aos tradutores por suas contribuições.
Traduzir o “PrettyCode • Code syntax highlighting with CodeMirror” para seu idioma.
Interessado no desenvolvimento?
Navegue pelo código, consulte o repositório SVN ou assine o registro de desenvolvimento por RSS.
Registro de alterações
2.0.2
- Fixed build
2.0.1
- Fixed build
2.0
- Upgraded to CodeMirror 6
- Updated blockAPI version to 3
- Fixed bugs
1.0.7
- Fixed code editor line height
1.0.6
- Added translation for JS files
- Fixed a bug with PHP block
1.0
- Initial release


