该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WP-Syntax Button

描述

This plugin is designed to work with WP-Syntax (https://wordpress.org/extend/plugins/wp-syntax/).
It is in fact a copy/paste of CodeColorer TinyMCE Button adapted for wp-syntax, but it takes in consideration that wp-syntax allows you to specify the first line number.

This plugin also corrects a disagreement when switching editor mode. When you use wp-syntax you have to write in HTML editor since line argument is removed by Visual Editor… This is no longer the case.

Note that now, you “must” write your code in Visual Editor : the plugin automatically adds escaped="true" to <pre> tag. If you write your code in HTML editor, you have to encode HTML entities.

TODO

  1. Make this plugin universal for any syntax highlighter plugin

屏幕截图

  • This is a new button on panel
  • This is what happens if you press it

安装

  1. Upload plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use new button in TinyMCE panel

评价

此插件暂无评价。

贡献者及开发者

“WP-Syntax Button” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“WP-Syntax Button”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志