Linux 软件免费装

Plugin Name

开发者 zach
更新时间 2009年7月3日 16:47
捐献地址: 去捐款
PHP版本: 2.7.1 及以上
WordPress版本: 2.8

标签

plugin highlighter syntax hiliter hilighter

下载

详情介绍:

Syntax hilight 30 languages, 2 dozen themes to choose from. Fast, can easily hilight 1000 lines of code (the Google Syntax Hilighter based plugins die around 75-100 lines). 2 ways to include code in your posts - use as documented on SHJS or use the [SyntaxHilite:...] syntax described in the installation/usage section to link to a raw text file. Uses SHJS for syntax hilighting, simple hand-rolled JavaScript for line numbering.

安装:

  1. Upload the SHJSSyntaxHiliter directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Select a theme from the Settings->SHJS Syntax Hiliter options page.
There are 2 ways to include your code: Technique 1 Inside <pre name="code" class="sh_java"></pre> just as you would normally use SHJS. Technique 2
  1. Copy your code into a file on your server.
  2. In your posts pass the webroot relative path and language like this:
[SyntaxHilite:/path/relative/to/site/root/myfile.java,java] The supported languages, etc. are detailed on the Settings->SHJS Syntax Hiliter page. Additional usage instructions can be found on codezach

常见问题:

Can this thing hilight my language?

There are 30 languages available, check the languages on SHJS.

How can I tell what the themes look like without applying them and refreshing?

Check out the theme previewer on SHJS. It would be nice to have theme preview integrated with the options, but I'm out of time for now...