Outils pour utilisateurs

Outils du site


start

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
start [2025/05/31 09:54] ztrulphcsstart [2025/10/18 09:06] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
-====== my own plugin test ======+====== default page ======
  
-This is my welcome page, just to see if some of my plugins work with DW Librarian version. 
  
  
-===== copy2clipboard =====+This is my welcome page, almost empty. The goal is just to show that DW is running.
  
-<code c++ helloworld.cpp> +===== sample texts from dokuwiki.org =====
-// Helloworld in C+++
  
-#include <iostream> 
  
-int main() { +A rough diagram of the relationships between these components; 
-    std::cout << "Hello World!"; +<file> 
-    return 0; +    +-----------+          +-----------+ 
-}+    |            Input    Client   | 
 +    |  Parser   |<---------|   Code    | 
 +    |            String  |           | 
 +    +-----.-----+          +-----|-----+ 
 +  Modes                       /|\ 
 +    +                 Renderer | 
 +  Input            Instructions| 
 +  String \|/                     | 
 +    +-----'-----+          +-----------+ 
 +    |                    |           | 
 +    |  Lexer    |---------> Handler 
 +    |            Tokens  |           | 
 +    +-----.-----+          +-----------+ 
 +          | 
 +          | 
 +     +----+---+ 
 +     | Modes  |-+ 
 +     +--------+ |-+ 
 +       +--------+ | 
 +         +--------+ 
 +</file>
  
 +
 +<code php>
 +$handler = new MyHandler();
 +$lexer = new dokuwiki\Lexer\Lexer($handler, 'base', true);
 </code> </code>
-===== a2s ===== 
  
-<a2s> +Here the initial mode here is called 'base'.
-.---------------------------.   .----------. +
-|[storage]                  |   |[document]| +
-|         STORAGE                      | +
-|                                      | +
-|                             .----------. +
-|       .----------.    .---+-------. +
-|       |[document]|    |[0]|TRANS +
-|                |    |   |PARENT | +
-|                |    '---+-------' +
-|       .----------.        | +
-.---------------------------.+
  
 +== addEntryPattern / addExitPattern ==
 +[[xref>addEntryPattern()]] and [[xref>addExitPattern()]] are used to register a pattern for entering and exiting a particular parsing mode. For example;
  
-storage:          : document : +<code php> 
-"fill":"#a7ffbe"  : "stroke":"#d627d8" +// arg0regex to match - note no need to add start/end pattern delimiters 
-"a2s:delref":true : "stroke-width":9 +// arg1name of mode where this entry pattern may be used 
-                  "stroke-dasharray":"5 3 3 7 10 5" +// arg2name of mode to enter 
-  5                7          10          5 +$lexer->addEntryPattern('<file>','base','file');
-.-----. .---. .---. .-------. .----------. .-----. +
-|[r]  | |   | |[r]| |       | |[r]       | |     | +
-'-----' '---' '---' '-------' '----------' '-----'+
  
-[document]: {"a2s:type":"document","stroke":"#d627d8","stroke-width":9,"stroke-dasharray":"5 3 3 7 10 5"} +// arg0regex to match 
-[storage]:  {"a2s:type":"storage","fill":"#a7ffbe","a2s:delref":true} +// arg1name of mode to exit 
-[0]:        {"stroke":"#FFEE49","stroke-width":9,"a2s:delref":true,"fill":"caramba"+$lexer->addExitPattern('</file>','file'); 
-[r]:        {"fill":"#d627d8","a2s:delref":true} +</code>
-</a2s> +
- +
-<a2s> +
-Shapes +
-.----------.     .----------.     .----------. +
-|[cloud]       |[computer]|     |[diamond] | +
-|          |  +->         |<-o->         | +
-|          |  |  |          |  |  |          | +
-.----------.  |  .----------.  |  .----------. +
---------------o----------------+ +
-.----------.  |  .----------.  |  .----------. +
-|[document]|  :  |[storage] |  |  |[printer] | +
-|          |<-+->         |  |  | Some txt | +
-|          |              |<-+->         | +
-.----------.     .----------.     '----------' +
-  +
-.----------.     .----------.     .----------. +
-|[cl]      |     |[c]           |[yn]      | +
-|          |  +->         |<-o->         | +
-|          |  |  |          |  |  |          | +
-.----------.  |  .----------.  |  .----------. +
---------------o----------------+ +
-.----------.  |  .----------.  |  .----------. +
-|[d]        :  |[st]      |  |  |[p]       | +
-|          |<-+->         |  |  | Some txt | +
-|          |              |<-+->         | +
-.----------.     .----------.     '----------' +
-  +
-  +
-[printer]:  {"a2s:type":"printer","fill":"#ff1493"+
-[computer]: {"a2s:type":"computer"+
-[cloud]:    {"a2s:type":"cloud"+
-[diamond]:  {"a2s:type":"diamond"+
-[document]: {"a2s:type":"document"+
-[storage]:  {"a2s:type":"storage"+
-[p]:        {"a2s:type":"printer","fill":"#ff1493","a2s:delref":true} +
-[c]:        {"a2s:type":"computer","a2s:delref":true} +
-[cl]:       {"a2s:type":"cloud","a2s:delref":true} +
-[yn]:       {"a2s:type":"diamond","a2s:delref":true} +
-[d]:        {"a2s:type":"document","a2s:delref":true} +
-[st]:       {"a2s:type":"storage","a2s:delref":true} +
-</a2s> +
- +
------------------ +
- +
- +
-< a2s> +
- .---------. +
- |[1]      | +
- | .-----. | +
- | |  <--+ | +
- | +-->  | | +
- | '-----'+
-   svg   | +
- |<    a2s>| +
- '---------' +
- +
-[1]    {"fill":"#E97B11","a2s:delref":true} +
-</a2s> +
-<a2s  > +
- .---------. +
- |[blue]   | +
- | .---.-. | +
- | | .-. | | +
- | | '-' | | +
- | '---'-'+
-  ascii  | +
- |<a2s    >+
- '---------' +
- +
-[blue]:     {"fill":"blue","a2s:delref":true} +
-</a2s> +
-<  a2s  > +
- .---------. +
- |[lc]     | +
- | .-----. | +
- | +-->  | | +
- | |  <--+ | +
- '-----' | +
-    2    | +
- |<  a2s  >| +
- '---------' +
- +
-[lc]:     {"fill":"LemonChiffon","a2s:delref":true} +
-</a2s> +
- +
-< a2s> +
- .---------. +
- |[1]      | +
- | .-----. | +
- | |  <--+ | +
- | +-->  | | +
- '-----+
-   svg   | +
- |<    a2s>| +
- '---------' +
-[1]:     {"fill":"#bcd2ee","a2s:delref":true} +
-</a2s> +
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan nec +
-odio quis aliquet. Nulla gravida ac est venenatis rhoncus. Aenean viverra +
-felis semper turpis commodo, ut vehicula dui mattis. Vivamus malesuada +
-vulputate justo. Suspendisse potenti. Etiam porttitor elementum nulla in +
-ultricies. Vestibulum volutpat nibh eu faucibus scelerisque. Suspendisse +
-eleifend arcu neque, at tristique metus tempus semper. Nullam ante leo, +
-convallis sit amet accumsan sed, semper nec quam. Curabitur fringilla, +
-orci id scelerisque varius, enim est ultrices est, et elementum magna +
-metus sit amet eros. Sed pharetra semper ligula sit amet efficitur. Mauris +
-congue accumsan egestas. Suspendisse potenti. Curabitur tincidunt +
-metus non justo tempus lacinia. Donec ornare velit a massa semper +
-ullamcorper. Donec dapibus ante vel lacus efficitur sodales. Integer +
-pretium eleifend nulla, at ullamcorper ipsum pellentesque placerat. Cras +
-condimentum iaculis leo. Sed sit amet pretium sem, sit amet suscipit +
-nibh. Nulla congue molestie purus sed congue. Fusce tincidunt ipsum +
-id molestie pellentesque. Curabitur lobortis placerat risus eget +
-vulputate. Maecenas ac feugiat ex, at facilisis nulla. Etiam rutrum +
-quis eros et facilisis. Nulla sodales molestie odio, id egestas massa +
-aliquam vel. Mauris vulputate ante sed volutpat euismod. Sed eleifend, +
-urna vitae auctor consequat, dui felis elementum ex, ut laoreet nunc +
-nisl convallis mi. Nullam id bibendum justo.+
  
-<a2s>  
-          +----+--------+                                : 
-          |    |        |             .----------------. | 
-          v    |        |             |[0]             | | 
-     #---------+---.    |        o----+----> Waow !    | v 
-                 |<---+       /                    | ^ 
-====>| Hello                 /      '----------------' | 
-====>| (svg) World '------.   /  #------#   .-------.    | 
-        .-----#         |==+        |            | 
-     '----#     '---------#      #------#   '-------' 
-[0]: {"a2s:link":"https://github.com/schplurtz/a2s","fill":"#CE3B83","stroke":"#F50078","stroke-dasharray":"5 5","stroke-width":4,"a2s:type":"cloud","a2s:delref":true} 
-</a2s> 
start.1748678045.txt.gz · Dernière modification : de ztrulphcs