2007-04-24, Tuesday - 02:16am

本博客plugins的使用方法

博客记录 Leave A Comment

1,audioplay
Once installed, this plugin allows you to insert mp3 audio files into your posts and pages. Use the following syntax:

[audio:name_of_mp3_file.mp3]

This code will insert a flash player and will load the file named name_of_mp3_file.mp3 located in your audio files folder. You can store your audio files anywhere in the web root as long as you update the path in the plugin’s options panel. The default is /audio.

You can also use absolute paths to link to files on other servers:

[audio:http://www.somedomain.com/path/to/name_of_mp3_file.mp3]

Audio Player can also play a sequence of audio clips. Use commas to separate the files:

[audio:name_of_mp3_file1.mp3,name_of_mp3_file2.mp3,name_of_mp3_file3.mp3#093;

You can also pre-append and post-append a clip to all your players. Explained in the Podcasting section.

2,coolcode

使用的语法是:

  1. <coolcode>
  2. 代码
  3. </coolcode>

如果要加亮具体的语言,可以用 lang 属性来指定:

  1. <coolcode lang="程序设计语言">
  2. 代码
  3. </coolcode>

如果不需要行号,可以使用 linenum 属性来指定:

<coolcode linenum="off" lang="程序设计语言">
代码
</
coolcode>

如果希望可以直接以文件下载代码,可以使用 download 属性来指定:

下载: example.txt
  1. <coolcode download="文件名.扩展名" lang="程序设计语言">
  2. 代码
  3. </coolcode>

这三个属性可以组合使用,互不影响。

目前支持的程序设计语言有:

  • actionscript
  • cpp
  • css
  • diff
  • dtd
  • html
  • java
  • javascript
  • mysql
  • perl
  • php
  • python
  • ruby
  • sql
  • xml
Creative Commons License
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 China Mainland License.

Leave A Response

Comment Feed     Trackback URI