This plugin uses Prism.js and a port of the beautiful Atom One Dark code theme with the Fira Code font.
- Syntax highlighting
- Tab support
- Special glyphs for arrow functions, operators, etc
- Nice interface
- 17+ languages supported
Want to contribute? Check out the GitHub repository.
這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。
- Code Block
What if [insert favorite langauge] isn’t supported?
I’ve tried my best to include the some of the most common programming languages, but there’s a change that yours isn’t supported! There are two things you could try. First, many programming langauge syntaxes are very similar. Play around with different languages and see if any produce a good enough result. Give a member of the C family a try. Alternatively, you can fork the repository on GitHub and add it yourself. As long as there’s enough demand and Prism.js supports it, you should be good to go!
1.0 – Initial Release