This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:syntax_ox0e_yewl_ghk [2023/01/02 03:03] 89.58.27.84 [Formatting Syntax] |
wiki:syntax_ox0e_yewl_ghk [2023/01/02 03:05] (current) 107.189.30.69 old revision restored (2021/08/29 11:07) |
||
---|---|---|---|
Line 2: | Line 2: | ||
[[doku>DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too. | [[doku>DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too. | ||
+ | |||
===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
Line 9: | Line 10: | ||
Of course you can **__//''combine''//__** all these. | Of course you can **__//''combine''//__** all these. | ||
- | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. | + | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. |
- | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. | + | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. |
- | You can mark something as <del>deleted</del> as well. | + | You can mark something as <del>deleted</del> as well. |
- | You can mark something as <del>deleted</del> as well. | + | You can mark something as <del>deleted</del> as well. |
**Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | ||
Line 35: | Line 36: | ||
==== External ==== | ==== External ==== | ||
- | External links are recognized automagically: http://www.google.com or simply www.google.com - You can set the link text as well: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too. | + | External links are recognized automagically: http://www.google.com or simply www.google.com - You can set the link text as well: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too. |
DokuWiki supports multiple ways of creating links. External links are recognized | DokuWiki supports multiple ways of creating links. External links are recognized | ||
automagically: http://www.google.com or simply www.google.com - You can set | automagically: http://www.google.com or simply www.google.com - You can set | ||
link text as well: [[http://www.google.com|This Link points to google]]. Email | link text as well: [[http://www.google.com|This Link points to google]]. Email | ||
- | addresses like this one: <andi@splitbrain.org> are recognized, too. | + | addresses like this one: <andi@splitbrain.org> are recognized, too. |
==== Internal ==== | ==== Internal ==== | ||
Line 49: | Line 50: | ||
a [[pagename]] or use an additional [[pagename|link text]]. | a [[pagename]] or use an additional [[pagename|link text]]. | ||
- | [[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed. | + | [[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed. |
You can use [[some:namespaces]] by using a colon in the pagename. | You can use [[some:namespaces]] by using a colon in the pagename. | ||
Line 55: | Line 56: | ||
You can use [[some:namespaces]] by using a colon in the pagename. | You can use [[some:namespaces]] by using a colon in the pagename. | ||
- | For details about namespaces see [[doku>namespaces]]. | + | For details about namespaces see [[doku>namespaces]]. |
Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. | ||
Line 64: | Line 65: | ||
* Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | ||
- | * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. | + | * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. |
* When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much. | * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much. | ||
==== Interwiki ==== | ==== Interwiki ==== | ||
- | DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. | + | DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. |
- | DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. | + | DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. |
- | For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. | + | For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. |
==== Windows Shares ==== | ==== Windows Shares ==== | ||
- | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]]. | + | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]]. |
Windows Shares like [[\\server\share|this]] are recognized, too. | Windows Shares like [[\\server\share|this]] are recognized, too. | ||
Line 82: | Line 83: | ||
Notes: | Notes: | ||
- | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). | + | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). |
- | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php> | + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php> |
- | <?php | + | <?php |
/** | /** | ||
* Customization of the english language file | * Customization of the english language file | ||
Line 90: | Line 91: | ||
*/ | */ | ||
$lang['js']['nosmblinks'] = ''; | $lang['js']['nosmblinks'] = ''; | ||
- | </code> | + | </code> |
==== Image Links ==== | ==== Image Links ==== | ||
Line 112: | Line 113: | ||
===== Sectioning ===== | ===== Sectioning ===== | ||
- | You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document. | + | You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document. |
==== Headline Level 3 ==== | ==== Headline Level 3 ==== | ||
Line 128: | Line 129: | ||
===== Media Files ===== | ===== Media Files ===== | ||
- | You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them. | + | You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them. |
Real size: {{wiki:dokuwiki-128.png}} | Real size: {{wiki:dokuwiki-128.png}} | ||
Line 191: | Line 192: | ||
When you upload a ''video.webm'' and ''video.ogv'' next to the referenced ''video.mp4'', DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser. | When you upload a ''video.webm'' and ''video.ogv'' next to the referenced ''video.mp4'', DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser. | ||
- | Additionally DokuWiki supports a "poster" image which will be shown before the video has started. That image needs to have the same filename as the video and be either a jpg or png file. In the example above a ''video.jpg'' file would work. | + | Additionally DokuWiki supports a "poster" image which will be shown before the video has started. That image needs to have the same filename as the video and be either a jpg or png file. In the example above a ''video.jpg'' file would work. |
===== Lists ===== | ===== Lists ===== | ||
Line 207: | Line 208: | ||
- That's it | - That's it | ||
- | <code> | + | <code> |
* This is a list | * This is a list | ||
* The second item | * The second item | ||
Line 217: | Line 218: | ||
- Just use indention for deeper levels | - Just use indention for deeper levels | ||
- That's it | - That's it | ||
- | </code> | + | </code> |
- | Also take a look at the [[doku>faq:lists|FAQ on list items]]. | + | Also take a look at the [[doku>faq:lists|FAQ on list items]]. |
===== Text Conversions ===== | ===== Text Conversions ===== | ||
Line 229: | Line 230: | ||
==== Text to Image Conversions ==== | ==== Text to Image Conversions ==== | ||
- | DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. Those [[doku>Smileys]] and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki: | + | DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. Those [[doku>Smileys]] and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki: |
* 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
Line 256: | Line 257: | ||
Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
- | "He thought 'It's a man's world'..." | + | "He thought 'It's a man's world'..." |
- | <code> | + | <code> |
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
- | "He thought 'It's a man's world'..." | + | "He thought 'It's a man's world'..." |
- | </code> | + | </code> |
- | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]]. | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]]. |
- | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]]. | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]]. |
===== Quoting ===== | ===== Quoting ===== | ||
Line 272: | Line 273: | ||
Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | ||
- | <code> | + | <code> |
I think we should do it | I think we should do it | ||
- | > No we shouldn't | + | > No we shouldn't |
- | >> Well, I say we should | + | >> Well, I say we should |
- | > Really? | + | > Really? |
- | >> Yes! | + | >> Yes! |
- | >>> Then lets do it! | + | >>> Then lets do it! |
- | </code> | + | </code> |
I think we should do it | I think we should do it | ||
- | > No we shouldn't | + | > No we shouldn't |
- | >> Well, I say we should | + | >> Well, I say we should |
- | > Really? | + | > Really? |
- | >> Yes! | + | >> Yes! |
- | >>> Then lets do it! | + | >>> Then lets do it! |
===== Tables ===== | ===== Tables ===== | ||
Line 362: | Line 363: | ||
===== No Formatting ===== | ===== No Formatting ===== | ||
- | If you need to display text exactly like it is typed (without any formatting), enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''. | + | If you need to display text exactly like it is typed (without any formatting), enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''. |
- | <nowiki> | + | <nowiki> |
This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. | ||
- | </nowiki> | + | </nowiki> |
The same is true for %%//__this__ text// with a smiley ;-)%%. | The same is true for %%//__this__ text// with a smiley ;-)%%. | ||
- | <nowiki> | + | <nowiki> |
This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. | ||
- | </nowiki> | + | </nowiki> |
The same is true for %%//__this__ text// with a smiley ;-)%%. | The same is true for %%//__this__ text// with a smiley ;-)%%. | ||
Line 381: | Line 382: | ||
Of course you can **__//''combine''//__** all these. | Of course you can **__//''combine''//__** all these. | ||
- | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. | + | You can use &lt;sub&gt;subscript&lt;/sub&gt; and &lt;sup&gt;superscript&lt;/sup&gt;, too. |
- | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. | + | You can use &lt;sub&gt;subscript&lt;/sub&gt; and &lt;sup&gt;superscript&lt;/sup&gt;, too. |
- | You can mark something as <del>deleted</del> as well. | + | You can mark something as &lt;del&gt;deleted&lt;/del&gt; as well. |
- | You can mark something as <del>deleted</del> as well. | + | You can mark something as &lt;del&gt;deleted&lt;/del&gt; as well. |
**Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | ||
Line 402: | Line 403: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''. | + | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''. |
- | <code java> | + | <code java> |
/** | /** | ||
* The HelloWorldApp class implements an application that | * The HelloWorldApp class implements an application that | ||
- | * simply displays "Hello World!" to the standard output. | + | * simply displays "Hello World!" to the standard output. |
*/ | */ | ||
class HelloWorldApp { | class HelloWorldApp { | ||
public static void main(String[] args) { | public static void main(String[] args) { | ||
- | System.out.println("Hello World!"); //Display the string. | + | System.out.println("Hello World!"); //Display the string. |
} | } | ||
} | } | ||
- | </code> | + | </code> |
The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript-french, actionscript, actionscript3, ada, algol68, apache, applescript, asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcs, delphi, diff, div, dos, dot, e, epc, ecmascript, eiffel, email, erlang, euphoria, f1, falcon, fo, fortran, freebasic, fsharp, gambas, genero, genie, gdb, glsl, gml, gnuplot, go, groovy, gettext, gwbasic, haskell, hicest, hq9plus, html, html5, icon, idl, ini, inno, intercal, io, j, java5, java, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, modula2, modula3, mmix, mpasm, mxml, mysql, newlisp, nsis, oberon2, objc, objeck, ocaml-brief, ocaml, oobas, oracle8, oracle11, oxygene, oz, pascal, pcre, perl, perl6, per, pf, php-brief, php, pike, pic16, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, python, q, qbasic, rails, rebol, reg, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, uscript, vala, vbnet, vb, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, winbatch, whois, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic// | The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript-french, actionscript, actionscript3, ada, algol68, apache, applescript, asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcs, delphi, diff, div, dos, dot, e, epc, ecmascript, eiffel, email, erlang, euphoria, f1, falcon, fo, fortran, freebasic, fsharp, gambas, genero, genie, gdb, glsl, gml, gnuplot, go, groovy, gettext, gwbasic, haskell, hicest, hq9plus, html, html5, icon, idl, ini, inno, intercal, io, j, java5, java, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, modula2, modula3, mmix, mpasm, mxml, mysql, newlisp, nsis, oberon2, objc, objeck, ocaml-brief, ocaml, oobas, oracle8, oracle11, oxygene, oz, pascal, pcre, perl, perl6, per, pf, php-brief, php, pike, pic16, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, python, q, qbasic, rails, rebol, reg, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, uscript, vala, vbnet, vb, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, winbatch, whois, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic// | ||
Line 420: | Line 421: | ||
==== Downloadable Code Blocks ==== | ==== Downloadable Code Blocks ==== | ||
- | When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as well. You can do this by specifying a file name after language code like this: | + | When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as well. You can do this by specifying a file name after language code like this: |
- | <code> | + | <code> |
- | <file php myexample.php> | + | <file php myexample.php> |
- | <?php echo "hello world!"; ?> | + | <?php echo "hello world!"; ?> |
- | </file> | + | </file> |
- | </code> | + | </code> |
- | <file php myexample.php> | + | <file php myexample.php> |
- | <?php echo "hello world!"; ?> | + | <?php echo "hello world!"; ?> |
- | </file> | + | </file> |
- | If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''. | + | If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''. |
===== Embedding HTML and PHP ===== | ===== Embedding HTML and PHP ===== | ||
- | You can embed raw HTML or PHP code into your documents by using the ''%%<html>%%'' or ''%%<php>%%'' tags. (Use uppercase tags if you need to enclose block level elements.) | + | You can embed raw HTML or PHP code into your documents by using the ''%%<html>%%'' or ''%%<php>%%'' tags. (Use uppercase tags if you need to enclose block level elements.) |
HTML example: | HTML example: | ||
- | <code> | + | <code> |
- | <html> | + | <html> |
- | This is some <span style="color:red;font-size:150%;">inline HTML</span> | + | This is some <span style="color:red;font-size:150%;">inline HTML</span> |
- | </html> | + | </html> |
- | <HTML> | + | <HTML> |
- | <p style="border:2px dashed red;">And this is some block HTML</p> | + | <p style="border:2px dashed red;">And this is some block HTML</p> |
- | </HTML> | + | </HTML> |
- | </code> | + | </code> |
- | <html> | + | <html> |
- | This is some <span style="color:red;font-size:150%;">inline HTML</span> | + | This is some <span style="color:red;font-size:150%;">inline HTML</span> |
- | </html> | + | </html> |
- | <HTML> | + | <HTML> |
- | <p style="border:2px dashed red;">And this is some block HTML</p> | + | <p style="border:2px dashed red;">And this is some block HTML</p> |
- | </HTML> | + | </HTML> |
PHP example: | PHP example: | ||
- | <code> | + | <code> |
- | <php> | + | <php> |
echo 'The PHP version: '; | echo 'The PHP version: '; | ||
echo phpversion(); | echo phpversion(); | ||
echo ' (generated inline HTML)'; | echo ' (generated inline HTML)'; | ||
- | </php> | + | </php> |
- | <PHP> | + | <PHP> |
- | echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>'; | + | echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>'; |
- | echo '<td>'.phpversion().'</td>'; | + | echo '<td>'.phpversion().'</td>'; |
- | echo '</tr></table>'; | + | echo '</tr></table>'; |
- | </PHP> | + | </PHP> |
- | </code> | + | </code> |
- | <php> | + | <php> |
echo 'The PHP version: '; | echo 'The PHP version: '; | ||
echo phpversion(); | echo phpversion(); | ||
echo ' (inline HTML)'; | echo ' (inline HTML)'; | ||
- | </php> | + | </php> |
- | <PHP> | + | <PHP> |
- | echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>'; | + | echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>'; |
- | echo '<td>'.phpversion().'</td>'; | + | echo '<td>'.phpversion().'</td>'; |
- | echo '</tr></table>'; | + | echo '</tr></table>'; |
- | </PHP> | + | </PHP> |
**Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | ||
Line 493: | Line 494: | ||
| author | show item authors names | | | author | show item authors names | | ||
| date | show item dates | | | date | show item dates | | ||
- | | description| show the item description. If [[doku>config:htmlok|HTML]] is disabled all tags will be stripped | | + | | description| show the item description. If [[doku>config:htmlok|HTML]] is disabled all tags will be stripped | |
| nosort | do not sort the items in the feed | | | nosort | do not sort the items in the feed | | ||
| //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
Line 503: | Line 504: | ||
**Example:** | **Example:** | ||
- | {{rss>http://slashdot.org/index.rss 5 author date 1h }} | + | {{rss>http://slashdot.org/index.rss 5 author date 1h }} |
- | {{rss>http://slashdot.org/index.rss 5 author date 1h }} | + | {{rss>http://slashdot.org/index.rss 5 author date 1h }} |
Line 514: | Line 515: | ||
^ Macro ^ Description | | ^ Macro ^ Description | | ||
| %%~~NOTOC~~%% | If this macro is found on the page, no table of contents will be created | | | %%~~NOTOC~~%% | If this macro is found on the page, no table of contents will be created | | ||
- | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call | | + | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call | |
===== Syntax Plugins ===== | ===== Syntax Plugins ===== | ||
- | DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation: | + | DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation: |
~~INFO:syntaxplugins~~ | ~~INFO:syntaxplugins~~ | ||
+ | 1 |