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

Code Markup

安装

  1. Copy code-markup.php into your WordPress plugins directory (wp-content/plugins).
  2. Log in to WordPress Admin. Go to the Plugins page and click Activate for Code Markup.
  3. Go to the Options page and click Writing. Make sure “WordPress should correct invalidly nested XHTML automatically” is NOT checked. (Otherwise it may do funny things to your code listings.)

常见问题

What is this good for?

The plugin allows you to quickly copy and paste code into your blog, and add HTML markup to it to emphasise certain parts of it. Normally this is not possible without a lot of fiddly manual editing.

what tags are allowed by default?

If the code block has its lang attribute set to html or xhtml, then no tags are allowed: all tags are escaped and will display as typed. Otherwise the following tags are allowed: em strong b i ins del a span

How do I change the default behaviour?

To make the code block render as straight HTML, set the code block’s “markup” attribute to “all”. In this case, make sure that you have typed correct HTML!

To make the code block display exactly as typed, set the code block’s “markup” attribute to “none”.

To allow the default tags to be rendered as HTML, even in HTML code, set the code block’s “markup” attribute to “default”.

评价

此插件暂无评价。

贡献者及开发者

「Code Markup」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Code Markup」翻译成简体中文。

对开发感兴趣吗?

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