howto:syntax
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:syntax [2020/08/09 16:46] – va7fi | howto:syntax [2024/08/03 08:51] (current) – [Control Macros] va7fi | ||
---|---|---|---|
Line 464: | Line 464: | ||
- | ===== Embedding HTML and PHP ===== | + | ===== Embedding HTML ===== |
- | You can embed raw HTML or PHP code into your documents by using the '' | + | You can embed raw HTML code into your documents by using the '' |
HTML example: | HTML example: | ||
- | < | + | < |
< | < | ||
This is some <span style=" | This is some <span style=" | ||
Line 486: | Line 486: | ||
</ | </ | ||
- | PHP example: | ||
- | < | + | **Please Note**: HTML embedding |
- | < | + | |
- | echo 'The PHP version: '; | + | |
- | echo phpversion(); | + | |
- | echo ' (generated inline HTML)'; | + | |
- | </ | + | |
- | < | + | |
- | echo '< | + | |
- | echo '< | + | |
- | echo '</ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | echo 'The PHP version: '; | + | |
- | echo phpversion(); | + | |
- | echo ' (inline HTML)'; | + | |
- | </ | + | |
- | < | + | |
- | echo '< | + | |
- | echo '< | + | |
- | echo '</ | + | |
- | </ | + | |
- | + | ||
- | **Please Note**: HTML and PHP embedding | + | |
===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
Line 539: | Line 514: | ||
===== Control Macros ===== | ===== Control Macros ===== | ||
- | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are available: |
^ Macro ^ Description | | ^ Macro ^ Description | | ||
| %%~~NOTOC~~%% | | %%~~NOTOC~~%% | ||
- | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | + | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (adding this macro will force DokuWiki to rerender a page on every call | |
===== Syntax Plugins ===== | ===== Syntax Plugins ===== |
howto/syntax.1597016786.txt.gz · Last modified: 2020/08/09 16:46 by va7fi