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

代码美化器

描述

本插件使用Google代码美化器将文章中的代码片段以语法高亮显示。

产品特点

  • More styles.
  • Colors can be customized.
  • The js/css files can be pre-loaded or post-loaded.
  • No js/css files are loaded if there is no code.

屏幕截图

  • The settings menu

安装

  1. Upload the full directory into your wp-content/plugins directory
  2. Activate the plugin at the plugin administration page
  3. Open the plugin configuration page, which is located under “Settings -> WP Code Prettify” and customize settings.

常见问题

What is it?

本插件使用Google代码美化器将文章中的代码片段以语法高亮显示。

评价

2016 年 9 月 3 日
works on wordpress 4.4.1. thank you for solving the bug.
阅读所有3条评价

贡献者及开发者

“代码美化器” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“代码美化器”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

0.2.8

  • Tested up to: 5.2

0.2.7

  • fix security issues;

0.2.6

  • fix “undefined index: head_custom”;

0.2.5

  • custom HTML can be add into \<head>, so you can include some js files, such as lang-matlab.js;
  • using plugins_url() instead of content_url();
  • Tested up to: 4.4

0.2.4

0.2.3

0.2.2

  • Tested up to: 3.9.0

0.2.1

  • Tested up to: 3.8.1

0.2.0

  • fix links of js/css files via https

0.1.9

  • update google code prettify to 4-Mar-2013 (fix css files)

0.1.8

  • update google code prettify to 4-Mar-2013

0.1.7

  • fix some warning.
  • improve options page

0.1.6

  • Tested up to: 3.4.2

0.1.5

  • fix “You do not have sufficient permissions to access this page.”.

0.1.4

  • fix “Notice: Undefined index: wpcp_update_options”.
  • Tested up to: 3.4.1

0.1.3

  • update version number.

0.1.2

  • fix “You do not have sufficient permissions to access this page.”.

0.1.1

  • update version number.

0.1.0

  • first version.