start
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| start [2025/05/31 09:54] – ztrulphcs | start [2025/10/18 09:06] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== | + | ====== |
| - | 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 < | ||
| - | int main() { | + | A rough diagram of the relationships between these components; |
| - | | + | < |
| - | | + | |
| - | } | + | | |
| + | | Parser | ||
| + | | ||
| + | | ||
| + | Modes | ||
| + | + | ||
| + | Input | ||
| + | String \|/ | | ||
| + | +-----' | ||
| + | | | ||
| + | | Lexer |---------> | ||
| + | | | ||
| + | +-----.-----+ | ||
| + | | | ||
| + | | | ||
| + | | ||
| + | | Modes |-+ | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | <code php> | ||
| + | $handler = new MyHandler(); | ||
| + | $lexer = new dokuwiki\Lexer\Lexer($handler, | ||
| </ | </ | ||
| - | ===== a2s ===== | ||
| - | < | + | Here the initial mode here is called |
| - | .---------------------------. | + | |
| - | |[storage] | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | .---------------------------. | + | |
| + | == addEntryPattern / addExitPattern == | ||
| + | [[xref> | ||
| - | storage: | + | <code php> |
| - | " | + | // arg0: regex to match - note no need to add start/end pattern delimiters |
| - | "a2s:delref": | + | // arg1: name of mode where this entry pattern may be used |
| - | : " | + | // arg2: name of mode to enter |
| - | 5 | + | $lexer-> |
| - | .-----. .---. .---. .-------. .----------. .-----. | + | |
| - | |[r] | | | |[r]| | | |[r] | | | | + | |
| - | '-----' '---' '---' ' | + | |
| - | [document]: {" | + | // arg0: regex to match |
| - | [storage]: | + | // arg1: name of mode to exit |
| - | [0]: {" | + | $lexer->addExitPattern('</file>',' |
| - | [r]: {" | + | </code> |
| - | </a2s> | + | |
| - | + | ||
| - | < | + | |
| - | Shapes | + | |
| - | .----------. | + | |
| - | |[cloud] | + | |
| - | | | +-> | + | |
| - | | | | | | | | | | + | |
| - | .----------. | + | |
| - | --------------o----------------+ | + | |
| - | .----------. | + | |
| - | |[document]| | + | |
| - | | |< | + | |
| - | | | | + | |
| - | .----------. | + | |
| - | + | ||
| - | .----------. | + | |
| - | |[cl] | | + | |
| - | | | +-> | + | |
| - | | | | | | | | | | + | |
| - | .----------. | + | |
| - | --------------o----------------+ | + | |
| - | .----------. | + | |
| - | |[d] | + | |
| - | | |< | + | |
| - | | | | + | |
| - | .----------. | + | |
| - | + | ||
| - | + | ||
| - | [printer]: | + | |
| - | [computer]: {" | + | |
| - | [cloud]: | + | |
| - | [diamond]: | + | |
| - | [document]: {" | + | |
| - | [storage]: | + | |
| - | [p]: {" | + | |
| - | [c]: {" | + | |
| - | [cl]: | + | |
| - | [yn]: | + | |
| - | [d]: {" | + | |
| - | [st]: | + | |
| - | </a2s> | + | |
| - | + | ||
| - | ----------------- | + | |
| - | + | ||
| - | + | ||
| - | < a2s> | + | |
| - | | + | |
| - | | + | |
| - | | .-----. | | + | |
| - | | | <--+ | | + | |
| - | | +--> | + | |
| - | | ' | + | |
| - | | + | |
| - | | + | |
| - | ' | + | |
| - | + | ||
| - | [1]: {" | + | |
| - | </ | + | |
| - | < | + | |
| - | .---------. | + | |
| - | | + | |
| - | | .---.-. | | + | |
| - | | | .-. | | | + | |
| - | | | ' | + | |
| - | | ' | + | |
| - | | + | |
| - | | + | |
| - | '---------' | + | |
| - | + | ||
| - | [blue]: | + | |
| - | </a2s> | + | |
| - | < a2s > | + | |
| - | | + | |
| - | | + | |
| - | | .-----. | | + | |
| - | | +--> | + | |
| - | | | <--+ | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | ' | + | |
| - | + | ||
| - | [lc]: | + | |
| - | </ | + | |
| - | + | ||
| - | < a2s> | + | |
| - | | + | |
| - | | + | |
| - | | .-----. | | + | |
| - | | | <--+ | | + | |
| - | | +--> | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | ' | + | |
| - | [1]: | + | |
| - | </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. | + | |
| - | < | ||
| - | +----+--------+ | ||
| - | | | | | ||
| - | v | | | ||
| - | # | ||
| - | | ||
| - | ====>| Hello | ||
| - | ====>| (svg) World ' | ||
| - | | ||
| - | ' | ||
| - | [0]: {" | ||
| - | </ | ||
start.1748678045.txt.gz · Dernière modification : de ztrulphcs
