start
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| start [2025/05/31 09:34] – created 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. | ||
| - | ===== a2s ===== | ||
| - | < | + | This is my welcome page, almost empty. The goal is just to show that DW is running. |
| - | .---------------------------. | + | |
| - | |[storage] | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | | | + | |
| - | .---------------------------. | + | |
| + | ===== sample texts from dokuwiki.org ===== | ||
| - | storage: | ||
| - | " | ||
| - | " | ||
| - | : " | ||
| - | 5 | ||
| - | .-----. .---. .---. .-------. .----------. .-----. | ||
| - | |[r] | | | |[r]| | | |[r] | | | | ||
| - | ' | ||
| - | [document]: {" | + | A rough diagram of the relationships between these components; |
| - | [storage]: | + | < |
| - | [0]: {" | + | +-----------+ |
| - | [r]: {" | + | |
| - | </a2s> | + | |
| + | | ||
| + | +-----.-----+ | ||
| + | Modes | ||
| + | + | ||
| + | Input | ||
| + | String \|/ | | ||
| + | +-----' | ||
| + | | | ||
| + | | Lexer |---------> | ||
| + | | | ||
| + | +-----.-----+ | ||
| + | | | ||
| + | | | ||
| + | | ||
| + | | Modes |-+ | ||
| + | | ||
| + | | ||
| + | | ||
| + | </file> | ||
| - | <a2s> | ||
| - | Shapes : | ||
| - | .----------. | ||
| - | |[cloud] | ||
| - | | | +-> | ||
| - | | | | | | | | | | ||
| - | .----------. | ||
| - | --------------o----------------+ | ||
| - | .----------. | ||
| - | |[document]| | ||
| - | | |< | ||
| - | | | | ||
| - | .----------. | ||
| - | |||
| - | .----------. | ||
| - | |[cl] | | ||
| - | | | +-> | ||
| - | | | | | | | | | | ||
| - | .----------. | ||
| - | --------------o----------------+ | ||
| - | .----------. | ||
| - | |[d] | ||
| - | | |< | ||
| - | | | | ||
| - | .----------. | ||
| - | |||
| - | |||
| - | [printer]: | ||
| - | [computer]: {" | ||
| - | [cloud]: | ||
| - | [diamond]: | ||
| - | [document]: {" | ||
| - | [storage]: | ||
| - | [p]: {" | ||
| - | [c]: {" | ||
| - | [cl]: | ||
| - | [yn]: | ||
| - | [d]: {" | ||
| - | [st]: | ||
| - | </ | ||
| - | ----------------- | + | <code php> |
| + | $handler = new MyHandler(); | ||
| + | $lexer = new dokuwiki\Lexer\Lexer($handler, | ||
| + | </ | ||
| + | Here the initial mode here is called ' | ||
| - | < a2s> | + | == addEntryPattern / addExitPattern == |
| - | | + | [[xref> |
| - | |[1] | | + | |
| - | | + | |
| - | | | <--+ | | + | |
| - | | +--> | + | |
| - | | ' | + | |
| - | | + | |
| - | | + | |
| - | ' | + | |
| - | [1]: | + | <code php> |
| - | </a2s> | + | // arg0: regex to match - note no need to add start/end pattern delimiters |
| - | < | + | // arg1: name of mode where this entry pattern may be used |
| - | .---------. | + | // arg2: name of mode to enter |
| - | |[blue] | + | $lexer-> |
| - | | .---.-. | | + | |
| - | | | .-. | | | + | |
| - | | | '-' | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | ' | + | |
| - | [blue]: {" | + | // arg0: regex to match |
| - | </a2s> | + | // arg1: name of mode to exit |
| - | < a2s > | + | $lexer->addExitPattern(' |
| - | .---------. | + | </code> |
| - | | + | |
| - | | .-----. | | + | |
| - | | +--> | | | + | |
| - | | | | + | |
| - | | + | |
| - | | + | |
| - | |< | + | |
| - | ' | + | |
| - | [lc]: | ||
| - | </ | ||
| - | |||
| - | < a2s> | ||
| - | | ||
| - | | ||
| - | | .-----. | | ||
| - | | | <--+ | | ||
| - | | +--> | ||
| - | | ' | ||
| - | | ||
| - | | ||
| - | ' | ||
| - | [1]: | ||
| - | </ | ||
| - | 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.1748676872.txt.gz · Dernière modification : de ztrulphcs
