Title: WP Chili
Author: Andrea Ercolino
Published: <strong>2008 年 3 月 12 日</strong>
Last modified: 2010 年 6 月 25 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/wp-chili.svg)

# WP Chili

 作者：[Andrea Ercolino](https://profiles.wordpress.org/aercolino/)

[下载](https://downloads.wordpress.org/plugin/wp-chili.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-chili/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-chili/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-chili/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-chili/#developers)

 [支持](https://wordpress.org/support/plugin/wp-chili/)

## 描述

Easy code highlighting for WordPress with [Chili](http://noteslog.com/chili/) (the
bundled version is 2.2):

 1. Switch to the `code` tab
 2. Put your code snippet inside `<code class="lang"></code>` tags
 3. Replace the above `lang` with the language to highlight

#### Examples

 * `<code class="php">echo "&lt;script&gt;alert( 'Hello ' + $name );&lt;/script&
   gt;";</code>`
 * `<code class="javascript">alert( 'Hello ' + $name );</code>`

#### Tips

 * Put your code inside `<pre><code class="lang"></code></pre>` tags if you want
   to preserve white space
 * Add an “ln-” class to the `<pre>` element to add line numbers
 * Read the [Chili](http://noteslog.com/chili/) site for many config options
 * In version 1.2, the file chili/recipes.js is the one which contains the recipes
   you need. So, add/remove recipes there if you need to. By default it contains
   html, css, javascript, and php

## 安装

 1. Copy the wp-chili folder into your plugins folder
 2. Activate WP Chili

## 常见问题

none

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Andrea Ercolino ](https://profiles.wordpress.org/aercolino/)

[帮助将「WP Chili」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-chili)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-chili/)，查看[SVN仓库](https://plugins.svn.wordpress.org/wp-chili/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/wp-chili/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-chili/)。

## 额外信息

 *  版本 **1.2**
 *  最后更新：**16 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.1 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-chili/)
 * 标签
 * [chili](https://cn.wordpress.org/plugins/tags/chili/)[code](https://cn.wordpress.org/plugins/tags/code/)
   [jquery](https://cn.wordpress.org/plugins/tags/jquery/)[pre](https://cn.wordpress.org/plugins/tags/pre/)
   [snippet](https://cn.wordpress.org/plugins/tags/snippet/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-chili/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp-chili/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-chili/reviews/)

## 贡献者

 *   [ Andrea Ercolino ](https://profiles.wordpress.org/aercolino/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-chili/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://noteslog.com/)