Linux 软件免费装
Banner图

CodeMirror Blocks

开发者 vickyagravat
更新时间 2024年4月9日 15:34
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 6.5
版权: GPLv2 or later
版权网址: 版权信息

标签

editor gutenberg codemirror syntax highlighter

下载

1.1.0 1.2.0 1.2.3 1.0.7 2.0.0 2.0.1 1.2.4 2.0.2 2.0.3

详情介绍:

CodeMirror Blocks is useful for developers blog, tutorial site where to display formatted (highlighted) code of any program. It supports 100+ Programming, Scripting and MarkUp Language, with 56 Different Themes. The Code Block is dependent on a CodeMirror library. Formatted Code Block is like (syntax highlighting feature) that displays source code, in different colors and fonts according to the category of terms. It is one strategy to improve the readability and context of the text; especially for code that spans several pages. The reader can easily ignore large sections of comments or code, depending on what they are looking for. This plugin is just plug and play, no tedious configurations or hacks, just install, activate and start using block inserter. New features include Features Key features include A list of supported themes:

安装:

Install "CodeMirror Blocks" just as you would any other WordPress Plugin. Automatically via WordPress Admin Area:
  1. Log in to Admin Area of your WordPress website.
  2. Go to Plugins -> Add New.
  3. Find this plugin and click install.
  4. Activate this plugin through the Plugins tab.
Manually via FTP access:
  1. Download a copy (ZIP file) of this plugin from WordPress.org.
  2. Unzip the ZIP file.
  3. Upload the unzipped catalog to your website's plugin directory (/wp-content/plugins/).
  4. Log in to Admin Area of your WordPress website.
  5. Activate this plugin through the Plugins tab.
More help installing plugins

屏幕截图:

  • Paste `CODE` and Select appropriate Language to highlight `CODE` (Block Editor).
  • Change Theme from 50+ different themes, with live Preview (Block Editor).
  • Toggle Line Number with one click (Block Editor).

升级注意事项:

2.0.0
  • Fix Cross-Site Scripting issue.
  • Code Execution functionality removed.
  • jQuery Dependency removed. Now, it is written in pure JavaScript.
1.1.0 Added New Features Included.

常见问题:

Q. It Supports Classic Editor?

Yes, Now it supports classic editor. So, works with tinyMCE editor. But it not support live syntax highlighting.

Q. It is Run without Gutenberg?

Yes, But if you want get live syntax highlighting, you have to install and activate Gutenberg, or Update your WordPress to latest version with built-in Block Editor.

Q. How to insert Code Block in Post?

A. Adding Code Block is same as inserting other Blocks.

  1. Log in to Admin Area of your WordPress website.
  2. Go to Posts -> Add New.
  3. Click The + button. it display all available Blocks to Insert.
  4. Find or Search Code Block.
  5. Click Code Block to insert in Post.

Q. How to change Language / Mode of Code Block?

A. Just select your Language / Mode from Select Dropdown.

Q. How to change color Theme of Code Block?

A. Just select your Theme from Select Dropdown.

Q. How to enable or disable Line Numbers?

A. Just click toggle button to (On/Off) it.

Q. How to enable or disable Highlight Active Line?

A. Just click toggle button to (On/Off) it.

Q. How to enable or disable Warp Long Line?

A. Just click toggle button to (On/Off) it.

Q. Does this require any knowledge of HTML or CSS?

A. Absolutely not. This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use Block. But you have to know about copy paste code on CodeMirror Block, and select proper Language/Mode and Theme.

Q. The last WordPress update is preventing me from editing my website that is using this plugin. Why is this?

A. This plugin can not cause such problem. More likely, the problem are related to the settings of the website. It could just be a cache, so please try to clear your website's cache (may be you using a caching plugin, or some web service such as the CloudFlare) and then the cache of your web browser. Also please try to re-login to the website, this too can help.

更新日志:

2.0.2 2.0.1 2.0.0 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0