Title: CodeHighlighter
Author: iwongu
Published: <strong>2007年9月7日</strong>
Last modified: 2012年6月18日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

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

# CodeHighlighter

 作者: [iwongu](https://profiles.wordpress.org/iwongu/)

[ダウンロード](https://downloads.wordpress.org/plugin/code-highlighter.1.9.zip)

 * [詳細](https://ja.wordpress.org/plugins/code-highlighter/#description)
 * [レビュー](https://ja.wordpress.org/plugins/code-highlighter/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/code-highlighter/#installation)
 * [開発](https://ja.wordpress.org/plugins/code-highlighter/#developers)

 [サポート](https://wordpress.org/support/plugin/code-highlighter/)

## 説明

This plugin is a syntax highlighter for source code. It uses _GeSHi_ as fontifier
engine.

#### Usage

 1. Put the code snippet in a “` tag.
 2. Add the lang attribute to the code tag like the following. `<code lang="php">`
 3. Add the lineno attribute to the `<code>` tag after the lang tag if you wish to 
    start at a line other than 1. `<code lang="cpp" lineno="42">`
 4. If you do not add lang attribute, the `<code>` tag is handled normally.
 5. If you want to have border, add the style like the following to your .css file.`
    code { border: 1px dotted #ccc; padding: 0.2em 0.5em; }`
 6. You can use following languages in lang. `abap, actionscript, ada, apache, applescript,
    asm, asp, autoit, bash, blitzbasic, bnf, c, c_mac, caddcl, cadlisp, cfdg, cfm, 
    cpp-qt, cpp, csharp, css-gen, css, d, delphi, diff, div, dos, dot, eiffel, fortran,
    freebasic, genero, gml, groovy, haskell, html4strict, idl, ini, inno, io, java,
    java5, javascript, latex, lisp, lua, m68k, matlab, mirc, mpasm, mysql, nsis, objc,
    ocaml-brief, ocaml, oobas, oracle8, pascal, per, perl, php-brief, php, plsql, python,
    qbasic, rails, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql,
    tcl, text, thinbasic, tsql, vb, vbnet, vhdl, visualfoxpro, winbatch, xml, xpp, 
    z80`

**Note:** Version 1.9 adds support for `<code>` tags, however to ensure backwards
compatibility support for the `<pre>` tag will not be removed.

### Known issues

 1. Because this plugin uses regular expression to match string range from `<code lang
    ="some">` to “`, you can’t use `</code>` in your code snippet. If you must put 
    the `</code>` tag, you can put a space between `<` and `/code>` like `< /code>`.
    The `< /code>` is converted to `</code>` automatically by plugin.
 2. If you want to change the style, you should modify the plugin source file. 😛

## インストール

 1. Unzip the plugin archive.
 2. Upload the directory to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

CodeHighlighter はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ iwongu ](https://profiles.wordpress.org/iwongu/)
 *   [ Ben Lobaugh (blobaugh) ](https://profiles.wordpress.org/blobaugh/)

[“CodeHighlighter” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/code-highlighter)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/code-highlighter/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/code-highlighter/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/code-highlighter/)を [RSS](https://plugins.trac.wordpress.org/log/code-highlighter/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.9

 * Added plugin maintainer
 * Removed outdated links
 * Added support for the `<code>` tag
 * Fixed several HTML entity display issues
 * Line numbering now defaults to displaying line numbers starting at 1

## メタ

 *  バージョン **1.9**
 *  最終更新日 **14年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 2.0またはそれ以降 **
 *  検証済み最新バージョン: **3.4.2**
 *  言語
 * [English (US)](https://wordpress.org/plugins/code-highlighter/)
 * タグ
 * [code highlighter](https://ja.wordpress.org/plugins/tags/code-highlighter/)[formatting](https://ja.wordpress.org/plugins/tags/formatting/)
   [post](https://ja.wordpress.org/plugins/tags/post/)[syntax highlight](https://ja.wordpress.org/plugins/tags/syntax-highlight/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/code-highlighter/advanced/)

## 評価

レビューはまだ送信されていません。

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/code-highlighter/reviews/)

## 貢献者

 *   [ iwongu ](https://profiles.wordpress.org/iwongu/)
 *   [ Ben Lobaugh (blobaugh) ](https://profiles.wordpress.org/blobaugh/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/code-highlighter/)