描述
Cipher is a settings-free plugin that allows commenters to publish (pre-formatted) code.
Functionalities:
- Backticks (`) can be used as an alternative to the
<code>
tag to mark up both in-line and pre-formatted code within a comment. - Formatted chunks of code or pieces of code longer than 70 characters posted via the comment form automatically wrapped in
pre+code
tags. - Special characters in code submitted through the comment form automatically converted to HTML entities.
安裝
Upload in the ‘plugins’ folder and activate.
評價
2018年2月15日
The snippet overlay doesn’t open due to some Javascript error, but the wrapping button in post editor still works fine.
UPD: a version with the snippet overlay fixed can be found here https://github.com/Exove/cipher. Would be glad to integrate the changes into the WP.org plugin, but can’t find any contact of the author.
貢獻者及開發者
修改日誌
1.2.2
Refreshed the plugin’s metadata.
1.2.1
Improved the namespacing of the base class.
1.2
- Removed the QuickTags feature, incompatible with the new Gutenberg editor.
- Periods, slashes and @ are no longer converted to HTML entities.