ユーザ用ツール

サイト用ツール


サイドバー



最近の更新



Tag Cloud

タグ#
6
10
1
3
1
2
17
7
1
1
6
9
4
1
2
183
1
4
2
7
14
5
1
25
2
3
1
6
1
1
33
1
3
3
1
1
1
1
1
1
13
45
7
9
10
5
10
3
2
2
8
2
2
6
3
1
1
4
7
4
2
2
2
1
7
2
4
1
4
24
2
12
2
3
1
1
2
2
1
1
1
4
2
2
4
2
2
1
1
2
1
1
1
2
1
26
2
1
2
2
2
1
1
2
3
12
4
7
1
1
2
10
1
3
1
1
7
1
1
1
1
1
8
1
4
2
1
1
1
3
3
7
1
2
1
1
7
3
1
10
1
1
4
1
2
1
2
7
2
1
3
1
1
3
1
2
1
2
2
2
1
2
3
1
1
3
3
1
3
1
3
3
2
1
1
7
1
3
3
1
1
1
1
5
1
27
2
2
1
2
2
3
1
1
1
2
1
2
1
1
1
3
1
1
1
2
2
2
1
1
1
1
1

dokuwiki:plugin:code2

code2

plugin code2

[fh] text

{code to highlight}
some text

(basic)
just marks up ”some text” as preformatted text (w/o any special highlighting).

some text
some text2

(extended)
marks up ”some text” as preformatted text (w/o any special highlighting) with line numbers starting at number 7.

A description

some text

(extended)
marks up ”some text” as preformatted text (w/o any special highlighting) with a footer line of ”A description”.

some text

(basic)
turns on HTML highlighting for ”some text”.

some text

(extended)
turns on HTML highlighting for ”some text” with added line numbers starting with number 1.

h A description:

some text

(extended)
turns on HTML highlighting for ”some text” and a header line of ”A description:”.

A description

some text

(extended)
turns on HTML highlighting for ”some text” with added line numbers starting with number 66 and a footer line of ”A description”.

some text

(extended)
turns on diff highlighting (autodetecting the patch format).

some text

(extended)
turns on diff highlighting (assuming an unified patch format).

A description

some text

(extended)
turns on diff highlighting (assuming a context patch format) and a footer line of ”A description”.

The shell output

some console commands capture

(extended)
turns on console mode with a footer line of ”The shell output”.

t The example page:

extern> http://dns.flat8.co.jp/index.html
some text
and more
some text
and more

Listing 2

var de = function() {
	return (typeof(window.de) == 'object') ? window.de : {};
}();

エラー

プラグインをインストールすると、plugin.info.txtが存在しないのでエラーが出力されます。

  • 2014-09-29a “Hrun” で確認
Plugin name 'syntax_plugin_code' is not a valid plugin name, only the characters a-z and 0-9 are allowed. Maybe the plugin has been installed in the wrong directory?

対応方法

1.プラグイン名が、DOKU_PLUGIN_NAME_REGEX に引っかかるので、プラグイン名変更

h inc/plugincontroller.class.php

    102             } elseif (preg_match('/^'.DOKU_PLUGIN_NAME_REGEX.'$/', $plugin) !== 1) {
    103                 msg(sprintf("Plugin name '%s' is not a valid plugin name, only the characters a-z and 0-9 are allowed. ".
    104                                 'Maybe the plugin has been installed in the wrong directory?', hsc($plugin)), -1);
$ mv lib/plugins/syntax_plugin_code lib/plugins/syntaxplugincode

2.別なプラグインからplugin.info.txtをコピーして、適当に書き換える。

$ cp lib/plugins/color/plugin.info.txt lib/plugins/syntaxplugincode/plugin.info.txt
$ vi lib/plugins/syntaxplugincode/plugin.info.txt
base     syntaxplugincode
author   XXXXXXXX
email    XXXX@XXX
date     2008-07-22
name     code2 Plugin
dokuwiki/plugin/code2.txt · 最終更新: 2015/10/07 09:31 (外部編集)

Yesterday:493 Today:330 Total:02616