Linux 软件免费装

Plugin Name

开发者 ahmedbm
更新时间 2009年5月4日 06:01
PHP版本: 2.0.2 及以上
WordPress版本: 2.7.1

标签

html xml block code formatting format markup java c# c++ .net prettify

下载

1.0

详情介绍:

This plugin is essentially an integration of two plugins with some modifications. I also included the latest version of Google Prettify to the plugin (Jan-8-2009) USAGE
  1. Enclose any code inside a <code> block.
  2. Use <code markup="..." lang="..."> to specify appearance of code. Include any HTML markup you like in the code, for example to add emphasis to certain sections. Separate <code> blocks should be nested within a <pre> block to preserve whitespace.
  3. If you want to fine-tune how Code Markup treats your code, use the markup and lang attributes on the code tag to specify how Code Markup should handle it.
  4. <code> or <code markup="default"> allows common HTML tags to be rendered, and displays everything else exactly as written.
  5. <code markup="none"> displays content exactly as written - no markup is rendered.
  6. <code markup="all"> renders content as HTML - all markup is rendered.
  7. <code markup="em strong a"> treats <em>, <strong> and <a> tags as HTML markup - everything else is displayed exactly as written. You can put whatever tags you like in the markup attribute, separated by spaces. As a special case, you can include the comment tag - this means that HTML comments <!-- like this --> will be rendered as normal HTML comments (i.e. not displayed).
  8. <code lang="html"> or <code lang="xhtml"> displays content exactly as written, the same as <code markup="none">.
  9. The markup attribute overrides the lang attribute.
  10. Separate <code> blocks should be nested within a <pre> block to preserve whitespace.

安装:

This section describes how to install the plugin and get it working.
  1. Upload the code_block_enabler/ folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Write posts/pages while using the <code> block
  4. 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.)
  5. Go to the Users page and click Your Profile. Make sure "Use the visual rich editor when writing" is NOT checked. (The visual rich editor does not like Code Block Enabler.)