内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
dokuwiki
»
plugin
»
code2
トレース:
•
02 Basic認証 httpd.conf
•
BINDでキャッシュサーバ
•
36 git Server
•
57 RocketChat
•
10 LVM 丸ごとバックアップ
•
14 fetchmail
dokuwiki:plugin:code2
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== code2 ====== [[https://www.dokuwiki.org/plugin:code2|plugin code2]] <code lang 123 |[fh] text |[sh] aaa> {code to highlight} </code> <code> some text </code> (basic) just marks up ”some text” as preformatted text (w/o any special highlighting). <code 7> some text some text2 </code> (extended) marks up ”some text” as preformatted text (w/o any special highlighting) with line numbers starting at number 7. <code |A description> some text </code> (extended) marks up ”some text” as preformatted text (w/o any special highlighting) with a footer line of ”A description”. <code html> some text </code> (basic) turns on HTML highlighting for ”some text”. <code html 1> some text </code> (extended) turns on HTML highlighting for ”some text” with added line numbers starting with number 1. <code html |h A description:> some text </code> (extended) turns on HTML highlighting for ”some text” and a header line of ”A description:”. <code html 66 |A description> some text </code> (extended) turns on HTML highlighting for ”some text” with added line numbers starting with number 66 and a footer line of ”A description”. <code diff> some text </code> (extended) turns on diff highlighting (autodetecting the patch format). <code diff u> some text </code> (extended) turns on diff highlighting (assuming an unified patch format). <code diff c |A description> some text </code> (extended) turns on diff highlighting (assuming a context patch format) and a footer line of ”A description”. <code console 1|The shell output> some console commands capture </code> (extended) turns on console mode with a footer line of ”The shell output”. <code html 1|t The example page:> extern> http://dns.flat8.co.jp/index.html </code> <code> some text and more </code> <code 1> some text and more </code> <code JavaScript 12|Listing 2> var de = function() { return (typeof(window.de) == 'object') ? window.de : {}; }(); </code> ===== エラー ===== プラグインをインストールすると、plugin.info.txtが存在しないのでエラーが出力されます。 * 2014-09-29a "Hrun" で確認 <code> 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? </code> ==== 対応方法 ==== 1.プラグイン名が、DOKU_PLUGIN_NAME_REGEX に引っかかるので、プラグイン名変更 <code |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); </code> <code console> $ mv lib/plugins/syntax_plugin_code lib/plugins/syntaxplugincode </code> 2.別なプラグインからplugin.info.txtをコピーして、適当に書き換える。 <code console> $ 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 </code> {{tag>dokuwiki:plugins syntax}}
dokuwiki/plugin/code2.txt
· 最終更新: 2015/10/07 00:31 by
127.0.0.1
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ