| Both sides previous revisionPrevious revision | |
| wiki:syntax [2026/04/10 16:50] – mitalapo | wiki:syntax [2026/04/11 18:08] (current) – external edit 127.0.0.1 |
|---|
| ==== External ==== | ==== External ==== |
| |
| External links are recognized automagically: https://www.google.com or simply www.google.com - You can set the link text as well: [[https://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: https://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: [[https://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. |
| |
| |
| * 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 [[https://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 |
| /** | /** |
| You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this: | You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this: |
| |
| [[https://php.net|{{wiki:dokuwiki-128.png}}]] | [[http://php.net|{{wiki:dokuwiki-128.png}}]] |
| |
| [[https://php.net|{{wiki:dokuwiki-128.png}}]] | [[http://php.net|{{wiki:dokuwiki-128.png}}]] |
| |
| Please note: The image formatting is the only formatting syntax accepted in link names. | Please note: The image formatting is the only formatting syntax accepted in link names. |
| |
| <nowiki> | <nowiki> |
| This is some text which contains addresses like this: https://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: https://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 ;-)%%. |
| ==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== |
| |
| [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[https://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> |
| |
| ===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== |
| [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[https://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters: | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters: |
| |
| ^ Parameter ^ Description ^ | ^ Parameter ^ Description ^ |
| **Example:** | **Example:** |
| |
| {{rss>https://slashdot.org/index.rss 5 author date 1h }} | {{rss>http://slashdot.org/index.rss 5 author date 1h }} |
| |
| {{rss>https://slashdot.org/index.rss 5 author date 1h }} | {{rss>http://slashdot.org/index.rss 5 author date 1h }} |
| |
| |