dokuwiki文法練習

keyboardプラグイン

Ctrl+X

Diffプラグイン

context:

--- syntax.php~  2005-08-14 10:01:12.000000000 +0200
+++ syntax.php  2005-08-14 10:09:44.000000000 +0200
@@ -204,7 +204,8 @@
             array("\n" . '<span class="diff-addedline">+\1</span>',
               "\n" . '<span class="diff-deletedline">-\1</span>',
               "\n" . '<span class="diff-blockheader">@@\1</span>'),
-            $data[1]);
+            str_replace(array('&','<', '>'),
+              array('&#38;', '&#60;', '&#62;'), $data[1]));
           return TRUE;
         case DOKU_LEXER_ENTER:
             $renderer->doc .= "\n". '<pre class="code">';

simple:

--- syntax.php~  2005-08-14 10:01:12.000000000 +0200
+++ syntax.php  2005-08-14 10:09:44.000000000 +0200
@@ -204,7 +204,8 @@
             array("\n" . '<span class="diff-addedline">+\1</span>',
               "\n" . '<span class="diff-deletedline">-\1</span>',
               "\n" . '<span class="diff-blockheader">@@\1</span>'),
-            $data[1]);
+            str_replace(array('&','<', '>'),
+              array('&#38;', '&#60;', '&#62;'), $data[1]));
           return TRUE;
         case DOKU_LEXER_ENTER:
             $renderer->doc .= "\n". '<pre class="code">';

unified:

--- syntax.php~  2005-08-14 10:01:12.000000000 +0200
+++ syntax.php  2005-08-14 10:09:44.000000000 +0200
@@ -204,7 +204,8 @@
             array("\n" . '<span class="diff-addedline">+\1</span>',
               "\n" . '<span class="diff-deletedline">-\1</span>',
               "\n" . '<span class="diff-blockheader">@@\1</span>'),
-            $data[1]);
+            str_replace(array('&','<', '>'),
+              array('&#38;', '&#60;', '&#62;'), $data[1]));
           return TRUE;
         case DOKU_LEXER_ENTER:
             $renderer->doc .= "\n". '<pre class="code">';

ChangeLogプラグイン

最近の変更

以下の文書は最近更新されたものです。

 
koshigoewiki/練習.txt · 最終更新: 2006/02/05 20:56 by koshigoebushou
 
Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki