Linux 软件免费装

WP-Markdown-SyntaxHighlighter

开发者 mattshelton
更新时间 2012年9月18日 01:21
捐献地址: 去捐款
PHP版本: 3.1 及以上
WordPress版本: 3.4.1
版权: GPLv2 or later
版权网址: 版权信息

标签

code markdown syntax highlight pre SyntaxHighlighter

下载

0.1 0.2 0.2.1 0.3 0.3.1 0.4

详情介绍:

WP-Markdown-SyntaxHighlighter is intended to work with the wp-markdown and SyntaxHighlighter Evolved plugins as follows: There are two methods of use:
  1. Add a #! line to your code example and specify the language (brush) only
  2. Add a #!! line to your code example and specify any/all supported parameters via a JSON object
Simple Method To use, add a #! line as the first line of your code example with the language you are using: !ruby class Foo < Bar def hello puts "Hello World!" end end The #! is removed, and the code is reformatted as: class One < Two def hello puts "Hello World!" end end Full Method To use, add a #!! line as the first line of your code example, with any of the supported SyntaxHighlighter parameters as a JSON object !!{"brush":"ruby","toolbar":"true","highlight":"[2,3,4]"} class Foo < Bar def hello puts "Hello World!" end end The #!! is removed, and the parameters are interpreted into a CSS class string as: class Foo < Bar def hello puts "Hello World!" end end

安装:

  1. Upload the wp-markdown-syntaxhighlighter folder (and its contents) to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Modify improperly formatted code blocks with your chosen #! or #!! formatting.

更新日志:

0.4 0.3.1 0.3 0.2.1 0.2 0.1