CINXE.COM
wiki:syntax [DokuWiki]
<!DOCTYPE html> <html lang="en" dir="ltr" class="no-js"> <head> <meta charset="utf-8" /> <title>wiki:syntax [DokuWiki]</title> <meta name="generator" content="DokuWiki"/> <meta name="theme-color" content="#008800"/> <meta name="robots" content="index,follow"/> <meta name="keywords" content="wiki,syntax"/> <link rel="search" type="application/opensearchdescription+xml" href="/lib/exe/opensearch.php" title="DokuWiki"/> <link rel="start" href="/"/> <link rel="contents" href="/wiki:syntax?do=index" title="Sitemap"/> <link rel="manifest" href="/lib/exe/manifest.php"/> <link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/feed.php"/> <link rel="alternate" type="application/rss+xml" title="Current namespace" href="/feed.php?mode=list&ns=wiki"/> <link rel="alternate" type="text/html" title="Plain HTML" href="/_export/xhtml/wiki:syntax"/> <link rel="alternate" type="text/plain" title="Wiki Markup" href="/_export/raw/wiki:syntax"/> <link rel="canonical" href="https://www.dokuwiki.org/wiki:syntax"/> <link rel="stylesheet" href="/lib/exe/css.php?t=dokuwiki&tseed=826e08a6afc6f3af33bf3037d5fc6458"/> <link rel="alternate" hreflang="ar" href="https://www.dokuwiki.org/ar:wiki:syntax"/> <link rel="alternate" hreflang="ca" href="https://www.dokuwiki.org/ca:wiki:syntax"/> <link rel="alternate" hreflang="cs" href="https://www.dokuwiki.org/cs:wiki:syntax"/> <link rel="alternate" hreflang="da" href="https://www.dokuwiki.org/da:wiki:syntax"/> <link rel="alternate" hreflang="de" href="https://www.dokuwiki.org/de:wiki:syntax"/> <link rel="alternate" hreflang="el" href="https://www.dokuwiki.org/el:wiki:syntax"/> <link rel="alternate" hreflang="eo" href="https://www.dokuwiki.org/eo:wiki:syntax"/> <link rel="alternate" hreflang="es" href="https://www.dokuwiki.org/es:wiki:syntax"/> <link rel="alternate" hreflang="fa" href="https://www.dokuwiki.org/fa:wiki:syntax"/> <link rel="alternate" hreflang="fr" href="https://www.dokuwiki.org/fr:wiki:syntax"/> <link rel="alternate" hreflang="he" href="https://www.dokuwiki.org/he:wiki:syntax"/> <link rel="alternate" hreflang="hu" href="https://www.dokuwiki.org/hu:wiki:syntax"/> <link rel="alternate" hreflang="it" href="https://www.dokuwiki.org/it:wiki:syntax"/> <link rel="alternate" hreflang="ja" href="https://www.dokuwiki.org/ja:wiki:syntax"/> <link rel="alternate" hreflang="ko" href="https://www.dokuwiki.org/ko:wiki:syntax"/> <link rel="alternate" hreflang="nl" href="https://www.dokuwiki.org/nl:wiki:syntax"/> <link rel="alternate" hreflang="no" href="https://www.dokuwiki.org/no:wiki:syntax"/> <link rel="alternate" hreflang="pl" href="https://www.dokuwiki.org/pl:wiki:syntax"/> <link rel="alternate" hreflang="pt-br" href="https://www.dokuwiki.org/pt-br:wiki:syntax"/> <link rel="alternate" hreflang="ru" href="https://www.dokuwiki.org/ru:wiki:syntax"/> <link rel="alternate" hreflang="sr" href="https://www.dokuwiki.org/sr:wiki:syntax"/> <link rel="alternate" hreflang="sv" href="https://www.dokuwiki.org/sv:wiki:syntax"/> <link rel="alternate" hreflang="th" href="https://www.dokuwiki.org/th:wiki:syntax"/> <link rel="alternate" hreflang="uk" href="https://www.dokuwiki.org/uk:wiki:syntax"/> <link rel="alternate" hreflang="zh" href="https://www.dokuwiki.org/zh:wiki:syntax"/> <link rel="alternate" hreflang="zh-tw" href="https://www.dokuwiki.org/zh-tw:wiki:syntax"/> <link rel="alternate" hreflang="x-default" href="https://www.dokuwiki.org/wiki:syntax"/> <script >var NS='wiki';var JSINFO = {"plugins":{"edittable":{"default columnwidth":""}},"id":"wiki:syntax","namespace":"wiki","ACT":"show","useHeadingNavigation":0,"useHeadingContent":0};(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js" defer="defer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js" defer="defer"></script> <script src="/lib/exe/js.php?t=dokuwiki&tseed=826e08a6afc6f3af33bf3037d5fc6458&lang=en" defer="defer"></script> <meta name="viewport" content="width=device-width,initial-scale=1" /> <link rel="shortcut icon" href="/lib/tpl/dokuwiki/images/favicon.ico" /> <link rel="apple-touch-icon" href="/lib/tpl/dokuwiki/images/apple-touch-icon.png" /> <meta name="verify-v1" content="OVxl3gsCv2MhZqh1cBQyl0JytWXSwXMjyvwc+4w3WtA=" /> <meta name="google-site-verification" content="YhTVK69hW94ZXUtc2zSLPxTkZKbZIn0zK67mz5WQB-E" /> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-83791-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-83791-1', { 'anonymize_ip': true }); </script> </head> <body> <div id="dokuwiki__site"><div id="dokuwiki__top" class="site dokuwiki mode_show tpl_dokuwiki showSidebar hasSidebar"> <!-- ********** HEADER ********** --> <header id="dokuwiki__header"><div class="pad group"> <div class="headings group"> <ul class="a11y skip"> <li><a href="#dokuwiki__content">skip to content</a></li> </ul> <h1 class="logo"><a href="/start" accesskey="h" title="Home [h]"><img src="/lib/tpl/dokuwiki/images/logo.png" width="64" height="64" alt="" /><span>DokuWiki</span></a></h1> <p class="claim">It's better when it's simple</p> </div> <div class="tools group"> <!-- USER TOOLS --> <div id="dokuwiki__usertools"> <h3 class="a11y">User Tools</h3> <ul> <li class="action login"><a href="/wiki:syntax?do=login&sectok=" title="Log In" rel="nofollow"><span>Log In</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 17.25V14H3v-4h7V6.75L15.25 12 10 17.25M8 2h9a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-4h2v4h9V4H8v4H6V4a2 2 0 0 1 2-2z"/></svg></a></li> </ul> </div> <!-- SITE TOOLS --> <div id="dokuwiki__sitetools"> <h3 class="a11y">Site Tools</h3> <form action="/start" method="get" role="search" class="search doku_form" id="dw__search" accept-charset="utf-8"><input type="hidden" name="do" value="search" /><input type="hidden" name="id" value="wiki:syntax" /><div class="no"><input name="q" type="text" class="edit" title="[F]" accesskey="f" placeholder="Search" autocomplete="on" id="qsearch__in" value="" /><button value="1" type="submit" title="Search">Search</button><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form> <div class="mobileTools"> <form action="/doku.php" method="get" accept-charset="utf-8"><div class="no"><input type="hidden" name="id" value="wiki:syntax" /><select name="do" class="edit quickselect" title="Tools"><option value="">Tools</option><optgroup label="Page Tools"><option value="edit">Show pagesource</option><option value="revisions">Old revisions</option><option value="backlink">Backlinks</option></optgroup><optgroup label="Site Tools"><option value="recent">Recent Changes</option><option value="media">Media Manager</option><option value="index">Sitemap</option></optgroup><optgroup label="User Tools"><option value="login">Log In</option></optgroup></select><button type="submit">></button></div></form> </div> <ul> <li class="action recent"><a href="/wiki:syntax?do=recent" title="Recent Changes [r]" rel="nofollow" accesskey="r">Recent Changes</a></li><li class="action media"><a href="/wiki:syntax?do=media&ns=wiki" title="Media Manager" rel="nofollow">Media Manager</a></li><li class="action index"><a href="/wiki:syntax?do=index" title="Sitemap [x]" rel="nofollow" accesskey="x">Sitemap</a></li> </ul> </div> </div> <!-- BREADCRUMBS --> <div class="breadcrumbs"> <div class="trace"><span class="bchead">Trace:</span> <span class="bcsep">•</span> <span class="curid"><bdi><a href="/wiki:syntax" class="breadcrumbs" title="wiki:syntax">syntax</a></bdi></span></div> </div> <hr class="a11y" /> </div></header><!-- /header --> <div class="wrapper group"> <!-- ********** ASIDE ********** --> <nav id="dokuwiki__aside" aria-label="Sidebar"><div class="pad aside include group"> <h3 class="toggle">Sidebar</h3> <div class="content"><div class="group"> <div class="plugin_translation is-dropdown"><span class="title">Translations of this page<sup><a href="/localization" class="wikilink1" title="localization" data-wiki-id="localization">?</a></sup>: </span><ul><li class="span"><span class="wikilink1" title="English">English (en)</span></li><li class="a"><a class="wikilink1" title="|العربية" href="/ar:wiki:syntax">|العربية (ar)</a></li><li class="a"><a class="wikilink1" title="Català" href="/ca:wiki:syntax">Català (ca)</a></li><li class="a"><a class="wikilink1" title="Česky" href="/cs:wiki:syntax">Česky (cs)</a></li><li class="a"><a class="wikilink1" title="Dansk" href="/da:wiki:syntax">Dansk (da)</a></li><li class="a"><a class="wikilink1" title="Deutsch" href="/de:wiki:syntax">Deutsch (de)</a></li><li class="a"><a class="wikilink1" title="Ελληνικά" href="/el:wiki:syntax">Ελληνικά (el)</a></li><li class="a"><a class="wikilink1" title="Esperanto" href="/eo:wiki:syntax">Esperanto (eo)</a></li><li class="a"><a class="wikilink1" title="Español" href="/es:wiki:syntax">Español (es)</a></li><li class="a"><a class="wikilink1" title="فارسی" href="/fa:wiki:syntax">فارسی (fa)</a></li><li class="a"><a class="wikilink1" title="Français" href="/fr:wiki:syntax">Français (fr)</a></li><li class="a"><a class="wikilink1" title="עברית" href="/he:wiki:syntax">עברית (he)</a></li><li class="a"><a class="wikilink1" title="Magyar" href="/hu:wiki:syntax">Magyar (hu)</a></li><li class="a"><a class="wikilink1" title="Italiano" href="/it:wiki:syntax">Italiano (it)</a></li><li class="a"><a class="wikilink1" title="日本語" href="/ja:wiki:syntax">日本語 (ja)</a></li><li class="a"><a class="wikilink1" title="한국어" href="/ko:wiki:syntax">한국어 (ko)</a></li><li class="a"><a class="wikilink2" title="Lietuvių Kalba" href="/lt:wiki:syntax">Lietuvių Kalba (lt)</a></li><li class="a"><a class="wikilink1" title="Nederlands" href="/nl:wiki:syntax">Nederlands (nl)</a></li><li class="a"><a class="wikilink1" title="Norsk" href="/no:wiki:syntax">Norsk (no)</a></li><li class="a"><a class="wikilink1" title="Polski" href="/pl:wiki:syntax">Polski (pl)</a></li><li class="a"><a class="wikilink1" title="Português" href="/pt-br:wiki:syntax">Português (pt-br)</a></li><li class="a"><a class="wikilink2" title="Română" href="/ro:wiki:syntax">Română (ro)</a></li><li class="a"><a class="wikilink1" title="Русский" href="/ru:wiki:syntax">Русский (ru)</a></li><li class="a"><a class="wikilink1" title="Српски Језик" href="/sr:wiki:syntax">Српски Језик (sr)</a></li><li class="a"><a class="wikilink1" title="Svenska" href="/sv:wiki:syntax">Svenska (sv)</a></li><li class="a"><a class="wikilink1" title="ไทย" href="/th:wiki:syntax">ไทย (th)</a></li><li class="a"><a class="wikilink1" title="Українська" href="/uk:wiki:syntax">Українська (uk)</a></li><li class="a"><a class="wikilink1" title="中文" href="/zh:wiki:syntax">中文 (zh)</a></li><li class="a"><a class="wikilink1" title="繁體中文" href="/zh-tw:wiki:syntax">繁體中文 (zh-tw)</a></li></ul></div> <p> <strong>Learn about DokuWiki</strong> </p> <ul> <li class="level1"><div class="li"> <a href="/features" class="wikilink1" title="features" data-wiki-id="features">Features</a> & <a href="/blogroll" class="wikilink1" title="blogroll" data-wiki-id="blogroll">reviews</a> </div> </li> <li class="level1"><div class="li"> <a href="/install" class="wikilink1" title="install" data-wiki-id="install">Installation guide</a></div> </li> <li class="level1"><div class="li"> <a href="/manual" class="wikilink1" title="manual" data-wiki-id="manual">User manual</a> & <a href="/wiki:syntax" class="wikilink1" title="wiki:syntax" data-wiki-id="wiki:syntax">syntax</a></div> </li> <li class="level1"><div class="li"> <a href="/changes" class="wikilink1" title="changes" data-wiki-id="changes">Release notes</a></div> </li> <li class="level1"><div class="li"> <a href="/faq" class="wikilink1" title="faq" data-wiki-id="faq">FAQ</a></div> </li> </ul> <p> <strong>Advanced Use</strong> </p> <ul> <li class="level1"><div class="li"> <a href="/extensions" class="wikilink1" title="extensions" data-wiki-id="extensions">Extensions</a></div> </li> <li class="level1"><div class="li"> <a href="/development" class="wikilink1" title="development" data-wiki-id="development">Development manual</a></div> </li> </ul> <p> <strong>Corporate Use</strong> </p> <ul> <li class="level1"><div class="li"> <a href="/faq:support" class="wikilink1" title="faq:support" data-wiki-id="faq:support">Get support</a></div> </li> <li class="level1"><div class="li"> <a href="/donate" class="wikilink1" title="donate" data-wiki-id="donate">Donations</a></div> </li> </ul> <p> <strong>Our Community</strong> </p> <ul> <li class="level1"><div class="li"> <a href="/teams:getting_involved" class="wikilink1" title="teams:getting_involved" data-wiki-id="teams:getting_involved">Get involved</a></div> </li> <li class="level1"><div class="li"> <a href="/dokuinstall" class="wikilink1" title="dokuinstall" data-wiki-id="dokuinstall">Users</a></div> </li> <li class="level1"><div class="li"> <a href="http://forum.dokuwiki.org" class="urlextern" title="http://forum.dokuwiki.org">User forum</a></div> </li> <li class="level1"><div class="li"> <a href="/mailinglist" class="wikilink1" title="mailinglist" data-wiki-id="mailinglist">Development mailinglist</a></div> </li> </ul> <hr /> <p> Follow us on <a href="https://phpc.social/@dokuwiki" class="urlextern" title="https://phpc.social/@dokuwiki">Mastodon</a> and other <a href="/social" class="wikilink1" title="social" data-wiki-id="social">social networks</a>. </p> <p> <a href="/privacy" class="wikilink1" title="privacy" data-wiki-id="privacy">Our Privacy Policy</a> </p> </div></div> </div></nav><!-- /aside --> <!-- ********** CONTENT ********** --> <main id="dokuwiki__content"><div class="pad group"> <div class="pageId"><span>wiki:syntax</span></div> <div class="page group"> <!-- wikipage start --> <!-- TOC START --> <div id="dw__toc" class="dw__toc"> <h3 class="toggle">Table of Contents</h3> <div> <ul class="toc"> <li class="level1"><div class="li"><a href="#formatting_syntax">Formatting Syntax</a></div> <ul class="toc"> <li class="level2"><div class="li"><a href="#basic_text_formatting">Basic Text Formatting</a></div></li> <li class="level2"><div class="li"><a href="#links">Links</a></div> <ul class="toc"> <li class="level3"><div class="li"><a href="#external">External</a></div></li> <li class="level3"><div class="li"><a href="#internal">Internal</a></div></li> <li class="level3"><div class="li"><a href="#interwiki">Interwiki</a></div></li> <li class="level3"><div class="li"><a href="#windows_shares">Windows Shares</a></div></li> <li class="level3"><div class="li"><a href="#image_links">Image Links</a></div></li> </ul> </li> <li class="level2"><div class="li"><a href="#footnotes">Footnotes</a></div></li> <li class="level2"><div class="li"><a href="#sectioning">Sectioning</a></div> <ul class="toc"> <li class="level3"><div class="li"><a href="#headline_level_3">Headline Level 3</a></div></li> </ul> </li> <li class="level2"><div class="li"><a href="#media_files">Media Files</a></div> <ul class="toc"> <li class="level3"><div class="li"><a href="#supported_media_formats">Supported Media Formats</a></div></li> <li class="level3"><div class="li"><a href="#fallback_formats">Fallback Formats</a></div></li> </ul> </li> <li class="level2"><div class="li"><a href="#lists">Lists</a></div></li> <li class="level2"><div class="li"><a href="#text_conversions">Text Conversions</a></div> <ul class="toc"> <li class="level3"><div class="li"><a href="#text_to_image_conversions">Text to Image Conversions</a></div></li> <li class="level3"><div class="li"><a href="#text_to_html_conversions">Text to HTML Conversions</a></div></li> </ul> </li> <li class="level2"><div class="li"><a href="#quoting">Quoting</a></div></li> <li class="level2"><div class="li"><a href="#tables">Tables</a></div></li> <li class="level2"><div class="li"><a href="#no_formatting">No Formatting</a></div></li> <li class="level2"><div class="li"><a href="#code_blocks">Code Blocks</a></div> <ul class="toc"> <li class="level3"><div class="li"><a href="#syntax_highlighting">Syntax Highlighting</a></div></li> <li class="level3"><div class="li"><a href="#downloadable_code_blocks">Downloadable Code Blocks</a></div></li> </ul> </li> <li class="level2"><div class="li"><a href="#rss_atom_feed_aggregation">RSS/ATOM Feed Aggregation</a></div></li> <li class="level2"><div class="li"><a href="#control_macros">Control Macros</a></div></li> <li class="level2"><div class="li"><a href="#syntax_plugins">Syntax Plugins</a></div></li> </ul></li> </ul> </div> </div> <!-- TOC END --> <h1 class="sectionedit1" id="formatting_syntax">Formatting Syntax</h1> <div class="level1"> <p> <a href="https://www.dokuwiki.org/DokuWiki" class="interwiki iw_doku" title="https://www.dokuwiki.org/DokuWiki">DokuWiki</a> 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 <a href="/playground:playground" class="wikilink1" title="playground:playground" data-wiki-id="playground:playground">playground</a> page. The simpler markup is easily accessible via <a href="https://www.dokuwiki.org/toolbar" class="interwiki iw_doku" title="https://www.dokuwiki.org/toolbar">quickbuttons</a>, too. </p> </div> <h2 class="sectionedit2" id="basic_text_formatting">Basic Text Formatting</h2> <div class="level2"> <p> DokuWiki supports <strong>bold</strong>, <em>italic</em>, <em class="u">underlined</em> and <code>monospaced</code> texts. Of course you can <strong><em class="u"><em><code>combine</code></em></em></strong> all these. </p> <pre class="code">DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these.</pre> <p> You can use <sub>subscript</sub> and <sup>superscript</sup>, too. </p> <pre class="code">You can use <sub>subscript</sub> and <sup>superscript</sup>, too.</pre> <p> You can mark something as <del>deleted</del> as well. </p> <pre class="code">You can mark something as <del>deleted</del> as well.</pre> <p> <strong>Paragraphs</strong> are created from blank lines. If you want to <strong>force a newline</strong> without a paragraph, you can use two backslashes followed by a whitespace or the end of line. </p> <p> This is some text with some linebreaks<br/> Note that the two backslashes are only recognized at the end of a line<br/> or followed by<br/> a whitespace \\this happens without it. </p> <pre class="code">This is some text with some linebreaks\\ Note that the two backslashes are only recognized at the end of a line\\ or followed by\\ a whitespace \\this happens without it.</pre> <p> You should use forced newlines only if really needed. </p> </div> <h2 class="sectionedit3" id="links">Links</h2> <div class="level2"> <p> DokuWiki supports multiple ways of creating links. </p> </div> <h3 class="sectionedit4" id="external">External</h3> <div class="level3"> <p> External links are recognized automagically: <a href="http://www.google.com" class="urlextern" title="http://www.google.com">http://www.google.com</a> or simply <a href="http://www.google.com" class="urlextern" title="http://www.google.com">www.google.com</a> - You can set the link text as well: <a href="http://www.google.com" class="urlextern" title="http://www.google.com">This Link points to google</a>. Email addresses like this one: <a href="mailto:andi%20%5Bat%5D%20splitbrain%20%5Bdot%5D%20org" class="mail" title="andi [at] splitbrain [dot] org">andi [at] splitbrain [dot] org</a> are recognized, too. </p> <pre class="code">DokuWiki supports multiple ways of creating links. External links are recognized 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 addresses like this one: <andi@splitbrain.org> are recognized, too.</pre> </div> <h3 class="sectionedit5" id="internal">Internal</h3> <div class="level3"> <p> Internal links are created by using square brackets. You can either just give a <a href="/wiki:pagename" class="wikilink2" title="wiki:pagename" rel="nofollow" data-wiki-id="wiki:pagename">pagename</a> or use an additional <a href="/wiki:pagename" class="wikilink2" title="wiki:pagename" rel="nofollow" data-wiki-id="wiki:pagename">link text</a>. </p> <pre class="code">Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]].</pre> <p> <a href="https://www.dokuwiki.org/pagename" class="interwiki iw_doku" title="https://www.dokuwiki.org/pagename">Wiki pagenames</a> are converted to lowercase automatically, special characters are not allowed. </p> <p> You can use <a href="/some:namespaces" class="wikilink2" title="some:namespaces" rel="nofollow" data-wiki-id="some:namespaces">namespaces</a> by using a colon in the pagename. </p> <pre class="code">You can use [[some:namespaces]] by using a colon in the pagename.</pre> <p> For details about namespaces see <a href="https://www.dokuwiki.org/namespaces" class="interwiki iw_doku" title="https://www.dokuwiki.org/namespaces">namespaces</a>. </p> <p> Linking to a specific section is possible, too. Just add the section name behind a hash character as known from <abbr title="HyperText Markup Language">HTML</abbr>. This links to <a href="/wiki:syntax#internal" class="wikilink1" title="wiki:syntax" data-wiki-id="wiki:syntax">this Section</a>. </p> <pre class="code">This links to [[syntax#internal|this Section]].</pre> <p> Notes: </p> <ul> <li class="level1"><div class="li"> Links to <a href="/wiki:syntax" class="wikilink1" title="wiki:syntax" data-wiki-id="wiki:syntax">existing pages</a> are shown in a different style from <a href="/wiki:nonexisting" class="wikilink2" title="wiki:nonexisting" rel="nofollow" data-wiki-id="wiki:nonexisting">nonexisting</a> ones.</div> </li> <li class="level1"><div class="li"> DokuWiki does not use <a href="https://en.wikipedia.org/wiki/CamelCase" class="interwiki iw_wp" title="https://en.wikipedia.org/wiki/CamelCase">CamelCase</a> to automatically create links by default, but this behavior can be enabled in the <a href="https://www.dokuwiki.org/config" class="interwiki iw_doku" title="https://www.dokuwiki.org/config">config</a> file. Hint: If DokuWiki is a link, then it's enabled.</div> </li> <li class="level1"><div class="li"> When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.</div> </li> </ul> </div> <h3 class="sectionedit6" id="interwiki">Interwiki</h3> <div class="level3"> <p> DokuWiki supports <a href="https://www.dokuwiki.org/Interwiki" class="interwiki iw_doku" title="https://www.dokuwiki.org/Interwiki">Interwiki</a> links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: <a href="https://en.wikipedia.org/wiki/Wiki" class="interwiki iw_wp" title="https://en.wikipedia.org/wiki/Wiki">Wiki</a>. </p> <pre class="code">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]].</pre> </div> <h3 class="sectionedit7" id="windows_shares">Windows Shares</h3> <div class="level3"> <p> Windows shares like <a href="file://///server/share" class="windows" title="\\server\share">this</a> are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate <a href="https://en.wikipedia.org/wiki/Intranet" class="interwiki iw_wp" title="https://en.wikipedia.org/wiki/Intranet">Intranet</a>. </p> <pre class="code">Windows Shares like [[\\server\share|this]] are recognized, too.</pre> <p> Notes: </p> <ul> <li class="level1"><div class="li"> For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the “local zone”).</div> </li> <li class="level1"><div class="li"> For Mozilla and Firefox it can be enabled through different workaround mentioned in the <a href="http://kb.mozillazine.org/Links_to_local_pages_do_not_work" class="urlextern" title="http://kb.mozillazine.org/Links_to_local_pages_do_not_work">Mozilla Knowledge Base</a>. 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 <code>conf/lang/en/lang.php</code> (more details at <a href="https://www.dokuwiki.org/localization#changing_some_localized_texts_and_strings_in_your_installation" class="interwiki iw_doku" title="https://www.dokuwiki.org/localization#changing_some_localized_texts_and_strings_in_your_installation">localization</a>): <dl class="code"> <dt><a href="/_export/code/wiki:syntax?codeblock=0" title="Download Snippet" class="mediafile mf_php">conf/lang/en/lang.php</a></dt> <dd><pre class="code"><?php /** * Customization of the english language file * Copy only the strings that needs to be modified */ $lang['js']['nosmblinks'] = '';</pre> </dd></dl> </div> </li> </ul> </div> <h3 class="sectionedit8" id="image_links">Image Links</h3> <div class="level3"> <p> You can also use an image to link to another internal or external page by combining the syntax for links and <a href="#images_and_other_files" title="wiki:syntax ↵" class="wikilink1">images</a> (see below) like this: </p> <pre class="code">[[http://php.net|{{wiki:dokuwiki-128.png}}]]</pre> <p> <a href="http://php.net" class="media" title="http://php.net"><img src="/_media/wiki:dokuwiki-128.png" class="media" loading="lazy" alt="" /></a> </p> <p> Please note: The image formatting is the only formatting syntax accepted in link names. </p> <p> The whole <a href="#images_and_other_files" title="wiki:syntax ↵" class="wikilink1">image</a> and <a href="#links" title="wiki:syntax ↵" class="wikilink1">link</a> syntax is supported (including image resizing, internal and external images and URLs and interwiki links). </p> </div> <h2 class="sectionedit9" id="footnotes">Footnotes</h2> <div class="level2"> <p> You can add footnotes <sup><a href="#fn__1" id="fnt__1" class="fn_top">1)</a></sup> by using double parentheses. </p> <pre class="code">You can add footnotes ((This is a footnote)) by using double parentheses.</pre> </div> <h2 class="sectionedit10" id="sectioning">Sectioning</h2> <div class="level2"> <p> 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 <code>~~NOTOC~~</code> in the document. </p> </div> <h3 class="sectionedit11" id="headline_level_3">Headline Level 3</h3> <div class="level3"> </div> <h4 id="headline_level_4">Headline Level 4</h4> <div class="level4"> </div> <h5 id="headline_level_5">Headline Level 5</h5> <div class="level5"> <pre class="code">==== Headline Level 3 ==== === Headline Level 4 === == Headline Level 5 ==</pre> <p> By using four or more dashes, you can make a horizontal line: </p> <hr /> </div> <h2 class="sectionedit12" id="media_files">Media Files</h2> <div class="level2"> <p> You can include external and internal <a href="https://www.dokuwiki.org/images" class="interwiki iw_doku" title="https://www.dokuwiki.org/images">images, videos and audio files</a> with curly brackets. Optionally you can specify the size of them. </p> <p> Real size: <a href="/_detail/wiki:dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki:dokuwiki-128.png" class="media" loading="lazy" alt="" /></a> </p> <p> Resize to given width: <a href="/_detail/wiki:dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki:dokuwiki-128.png?w=50&tok=c5a393" class="media" loading="lazy" alt="" width="50" /></a> </p> <p> Resize to given width and height<sup><a href="#fn__2" id="fnt__2" class="fn_top">2)</a></sup>: <a href="/_detail/wiki:dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki:dokuwiki-128.png?w=200&h=50&tok=bc151f" class="media" loading="lazy" alt="" width="200" height="50" /></a> </p> <p> Resized external image: <a href="/lib/exe/fetch.php?tok=c40183&media=https%3A%2F%2Fwww.php.net%2Fimages%2Fphp.gif" class="media" title="https://www.php.net/images/php.gif"><img src="/lib/exe/fetch.php?w=200&h=50&tok=540d2f&media=https%3A%2F%2Fwww.php.net%2Fimages%2Fphp.gif" class="media" loading="lazy" alt="" width="200" height="50" /></a> </p> <pre class="code">Real size: {{wiki:dokuwiki-128.png}} Resize to given width: {{wiki:dokuwiki-128.png?50}} Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} Resized external image: {{https://www.php.net/images/php.gif?200x50}}</pre> <p> By using left or right whitespaces you can choose the alignment. </p> <p> <a href="/_detail/wiki:dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki:dokuwiki-128.png" class="mediaright" loading="lazy" alt="" /></a> </p> <p> <a href="/_detail/wiki:dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki:dokuwiki-128.png" class="medialeft" loading="lazy" alt="" /></a> </p> <p> <a href="/_detail/wiki:dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki:dokuwiki-128.png" class="mediacenter" loading="lazy" alt="" /></a> </p> <pre class="code">{{ wiki:dokuwiki-128.png}} {{wiki:dokuwiki-128.png }} {{ wiki:dokuwiki-128.png }}</pre> <p> Of course, you can add a title (displayed as a tooltip by most browsers), too. </p> <p> <a href="/_detail/wiki:dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki:dokuwiki-128.png" class="mediacenter" loading="lazy" title="This is the caption" alt="This is the caption" /></a> </p> <pre class="code">{{ wiki:dokuwiki-128.png |This is the caption}}</pre> <p> For linking an image to another page see <a href="#image_links" title="wiki:syntax ↵" class="wikilink1">Image Links</a> above. </p> </div> <h3 class="sectionedit13" id="supported_media_formats">Supported Media Formats</h3> <div class="level3"> <p> DokuWiki can embed the following media formats directly. </p> <div class="table sectionedit14"><table class="inline"> <tr class="row0"> <td class="col0"> Image </td><td class="col1 leftalign"> <code>gif</code>, <code>jpg</code>, <code>png</code> </td> </tr> <tr class="row1"> <td class="col0"> Video </td><td class="col1"> <code>webm</code>, <code>ogv</code>, <code>mp4</code> </td> </tr> <tr class="row2"> <td class="col0"> Audio </td><td class="col1 leftalign"> <code>ogg</code>, <code>mp3</code>, <code>wav</code> </td> </tr> <tr class="row3"> <td class="col0"> Flash </td><td class="col1 leftalign"> <code>swf</code> </td> </tr> </table></div> <p> If you specify a filename that is not a supported media format, then it will be displayed as a link instead. </p> <p> By adding <code>?linkonly</code> you provide a link to the media without displaying it inline </p> <pre class="code">{{wiki:dokuwiki-128.png?linkonly}}</pre> <p> <a href="/_media/wiki:dokuwiki-128.png" class="media mediafile mf_png" title="wiki:dokuwiki-128.png (27.2 KB)">dokuwiki-128.png</a> This is just a link to the image. </p> </div> <h3 class="sectionedit15" id="fallback_formats">Fallback Formats</h3> <div class="level3"> <p> Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. </p> <p> For example consider this embedded mp4 video: </p> <pre class="code">{{video.mp4|A funny video}}</pre> <p> When you upload a <code>video.webm</code> and <code>video.ogv</code> next to the referenced <code>video.mp4</code>, DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser. </p> <p> 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 <code>video.jpg</code> file would work. </p> </div> <h2 class="sectionedit16" id="lists">Lists</h2> <div class="level2"> <p> Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a <code>*</code> for unordered lists or a <code>-</code> for ordered ones. </p> <ul> <li class="level1"><div class="li"> This is a list</div> </li> <li class="level1 node"><div class="li"> The second item</div> <ul> <li class="level2"><div class="li"> You may have different levels</div> </li> </ul> </li> <li class="level1"><div class="li"> Another item</div> </li> </ul> <ol> <li class="level1"><div class="li"> The same list but ordered</div> </li> <li class="level1 node"><div class="li"> Another item</div> <ol> <li class="level2"><div class="li"> Just use indention for deeper levels</div> </li> </ol> </li> <li class="level1"><div class="li"> That's it</div> </li> </ol> <pre class="code"> * This is a list * The second item * You may have different levels * Another item - The same list but ordered - Another item - Just use indention for deeper levels - That's it</pre> <p> Also take a look at the <a href="https://www.dokuwiki.org/faq%3Alists" class="interwiki iw_doku" title="https://www.dokuwiki.org/faq%3Alists">FAQ on list items</a>. </p> </div> <h2 class="sectionedit17" id="text_conversions">Text Conversions</h2> <div class="level2"> <p> DokuWiki can convert certain pre-defined characters or strings into images or other text or <abbr title="HyperText Markup Language">HTML</abbr>. </p> <p> The text to image conversion is mainly done for smileys. And the text to <abbr title="HyperText Markup Language">HTML</abbr> conversion is used for typography replacements, but can be configured to use other <abbr title="HyperText Markup Language">HTML</abbr> as well. </p> </div> <h3 class="sectionedit18" id="text_to_image_conversions">Text to Image Conversions</h3> <div class="level3"> <p> DokuWiki converts commonly used <a href="https://en.wikipedia.org/wiki/emoticon" class="interwiki iw_wp" title="https://en.wikipedia.org/wiki/emoticon">emoticon</a>s to their graphical equivalents. Those <a href="https://www.dokuwiki.org/Smileys" class="interwiki iw_doku" title="https://www.dokuwiki.org/Smileys">Smileys</a> and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki: </p> <ul> <li class="level1"><div class="li"> <img src="/lib/images/smileys/cool.svg" class="icon smiley" alt="8-)" /> 8-) </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/eek.svg" class="icon smiley" alt="8-O" /> 8-O </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/sad.svg" class="icon smiley" alt=":-(" /> :-( </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/smile.svg" class="icon smiley" alt=":-)" /> :-) </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/smile2.svg" class="icon smiley" alt="=)" /> =) </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/doubt.svg" class="icon smiley" alt=":-/" /> :-/ </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/doubt2.svg" class="icon smiley" alt=":-\" /> :-\ </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/confused.svg" class="icon smiley" alt=":-?" /> :-? </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/biggrin.svg" class="icon smiley" alt=":-D" /> :-D </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/razz.svg" class="icon smiley" alt=":-P" /> :-P </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/surprised.svg" class="icon smiley" alt=":-O" /> :-O </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/silenced.svg" class="icon smiley" alt=":-X" /> :-X </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/neutral.svg" class="icon smiley" alt=":-|" /> :-| </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/wink.svg" class="icon smiley" alt=";-)" /> ;-) </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/fun.svg" class="icon smiley" alt="^_^" /> ^_^ </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/facepalm.svg" class="icon smiley" alt="m(" /> m( </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/question.svg" class="icon smiley" alt=":?:" /> :?: </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/exclaim.svg" class="icon smiley" alt=":!:" /> :!: </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/lol.svg" class="icon smiley" alt="LOL" /> LOL </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/fixme.svg" class="icon smiley" alt="FIXME" /> FIXME </div> </li> <li class="level1"><div class="li"> <img src="/lib/images/smileys/deleteme.svg" class="icon smiley" alt="DELETEME" /> DELETEME </div> </li> </ul> </div> <h3 class="sectionedit19" id="text_to_html_conversions">Text to HTML Conversions</h3> <div class="level3"> <p> Typography: <a href="/wiki:dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. </p> <p> → ← ↔ ⇒ ⇐ ⇔ » « – — 640×480 © ™ ® “He thought 'It's a man's world'…” </p> <pre class="code">-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) "He thought 'It's a man's world'..."</pre> <p> The same can be done to produce any kind of <abbr title="HyperText Markup Language">HTML</abbr>, it just needs to be added to the <a href="https://www.dokuwiki.org/entities" class="interwiki iw_doku" title="https://www.dokuwiki.org/entities">pattern file</a>. </p> <p> There are three exceptions which do not come from that pattern file: multiplication entity (640×480), 'single' and “double quotes”. They can be turned off through a <a href="https://www.dokuwiki.org/config%3Atypography" class="interwiki iw_doku" title="https://www.dokuwiki.org/config%3Atypography">config option</a>. </p> </div> <h2 class="sectionedit20" id="quoting">Quoting</h2> <div class="level2"> <p> Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: </p> <pre class="code">I think we should do it > No we shouldn't >> Well, I say we should > Really? >> Yes! >>> Then lets do it!</pre> <p> I think we should do it </p> <blockquote><div class="no"> No we shouldn't</div></blockquote> <blockquote><div class="no"> <blockquote><div class="no"> Well, I say we should</div></blockquote> </div></blockquote> <blockquote><div class="no"> Really?</div></blockquote> <blockquote><div class="no"> <blockquote><div class="no"> Yes!</div></blockquote> </div></blockquote> <blockquote><div class="no"> <blockquote><div class="no"> <blockquote><div class="no"> Then lets do it!</div></blockquote> </div></blockquote> </div></blockquote> </div> <h2 class="sectionedit21" id="tables">Tables</h2> <div class="level2"> <p> DokuWiki supports a simple syntax to create tables. </p> <div class="table sectionedit22"><table class="inline"> <thead> <tr class="row0"> <th class="col0 leftalign"> Heading 1 </th><th class="col1 leftalign"> Heading 2 </th><th class="col2 leftalign"> Heading 3 </th> </tr> </thead> <tr class="row1"> <td class="col0 leftalign"> Row 1 Col 1 </td><td class="col1 leftalign"> Row 1 Col 2 </td><td class="col2 leftalign"> Row 1 Col 3 </td> </tr> <tr class="row2"> <td class="col0 leftalign"> Row 2 Col 1 </td><td class="col1" colspan="2"> some colspan (note the double pipe) </td> </tr> <tr class="row3"> <td class="col0 leftalign"> Row 3 Col 1 </td><td class="col1 leftalign"> Row 3 Col 2 </td><td class="col2 leftalign"> Row 3 Col 3 </td> </tr> </table></div> <p> Table rows have to start and end with a <code>|</code> for normal rows or a <code>^</code> for headers. </p> <pre class="code">^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | Row 2 Col 1 | some colspan (note the double pipe) || | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 |</pre> <p> To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators! </p> <p> Vertical tableheaders are possible, too. </p> <div class="table sectionedit23"><table class="inline"> <thead> <tr class="row0"> <td class="col0 leftalign"> </td><th class="col1 leftalign"> Heading 1 </th><th class="col2 leftalign"> Heading 2 </th> </tr> </thead> <tr class="row1"> <th class="col0 leftalign"> Heading 3 </th><td class="col1 leftalign"> Row 1 Col 2 </td><td class="col2 leftalign"> Row 1 Col 3 </td> </tr> <tr class="row2"> <th class="col0 leftalign"> Heading 4 </th><td class="col1"> no colspan this time </td><td class="col2 leftalign"> </td> </tr> <tr class="row3"> <th class="col0 leftalign"> Heading 5 </th><td class="col1 leftalign"> Row 2 Col 2 </td><td class="col2 leftalign"> Row 2 Col 3 </td> </tr> </table></div> <p> As you can see, it's the cell separator before a cell which decides about the formatting: </p> <pre class="code">| ^ Heading 1 ^ Heading 2 ^ ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | ^ Heading 4 | no colspan this time | | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 |</pre> <p> You can have rowspans (vertically connected cells) by adding <code>:::</code> into the cells below the one to which they should connect. </p> <div class="table sectionedit24"><table class="inline"> <thead> <tr class="row0"> <th class="col0 leftalign"> Heading 1 </th><th class="col1 leftalign"> Heading 2 </th><th class="col2 leftalign"> Heading 3 </th> </tr> </thead> <tr class="row1"> <td class="col0 leftalign"> Row 1 Col 1 </td><td class="col1" rowspan="3"> this cell spans vertically </td><td class="col2 leftalign"> Row 1 Col 3 </td> </tr> <tr class="row2"> <td class="col0 leftalign"> Row 2 Col 1 </td><td class="col1 leftalign"> Row 2 Col 3 </td> </tr> <tr class="row3"> <td class="col0 leftalign"> Row 3 Col 1 </td><td class="col1 leftalign"> Row 2 Col 3 </td> </tr> </table></div> <p> Apart from the rowspan syntax those cells should not contain anything else. </p> <pre class="code">^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | Row 2 Col 1 | ::: | Row 2 Col 3 | | Row 3 Col 1 | ::: | Row 2 Col 3 |</pre> <p> You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. </p> <div class="table sectionedit25"><table class="inline"> <thead> <tr class="row0"> <th class="col0 centeralign" colspan="3"> Table with alignment </th> </tr> </thead> <tr class="row1"> <td class="col0 rightalign"> right</td><td class="col1 centeralign"> center </td><td class="col2 leftalign">left </td> </tr> <tr class="row2"> <td class="col0 leftalign">left </td><td class="col1 rightalign"> right</td><td class="col2 centeralign"> center </td> </tr> <tr class="row3"> <td class="col0"> xxxxxxxxxxxx </td><td class="col1"> xxxxxxxxxxxx </td><td class="col2"> xxxxxxxxxxxx </td> </tr> </table></div> <p> This is how it looks in the source: </p> <pre class="code">^ Table with alignment ^^^ | right| center |left | |left | right| center | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |</pre> <p> Note: Vertical alignment is not supported. </p> </div> <h2 class="sectionedit26" id="no_formatting">No Formatting</h2> <div class="level2"> <p> If you need to display text exactly like it is typed (without any formatting), enclose the area either with <code><nowiki></code> tags or even simpler, with double percent signs <code>%%</code>. </p> <p> This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. The same is true for //__this__ text// with a smiley ;-). </p> <pre class="code"><nowiki> This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. </nowiki> The same is true for %%//__this__ text// with a smiley ;-)%%.</pre> </div> <h2 class="sectionedit27" id="code_blocks">Code Blocks</h2> <div class="level2"> <p> You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags <code><code></code> or <code><file></code>. </p> <pre class="code">This is text is indented by two spaces.</pre> <pre class="code">This is preformatted code all spaces are preserved: like <-this</pre> <pre class="file">This is pretty much the same, but you could use it to show that you quoted a file.</pre> <p> Those blocks were created by this source: </p> <pre class="code"> This is text is indented by two spaces.</pre> <pre class="code"><code> This is preformatted code all spaces are preserved: like <-this </code></pre> <pre class="code"><file> This is pretty much the same, but you could use it to show that you quoted a file. </file></pre> </div> <h3 class="sectionedit28" id="syntax_highlighting">Syntax Highlighting</h3> <div class="level3"> <p> <a href="/wiki:dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> can highlight sourcecode, which makes it easier to read. It uses the <a href="http://qbnz.com/highlighter/" class="urlextern" title="http://qbnz.com/highlighter/">GeSHi</a> 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. <code><code java></code> or <code><file java></code>. </p> <pre class="code java"><span class="co3">/** * The HelloWorldApp class implements an application that * simply displays "Hello World!" to the standard output. */</span> <span class="kw1">class</span> HelloWorldApp <span class="br0">{</span> <span class="kw1">public</span> <span class="kw1">static</span> <span class="kw4">void</span> main<span class="br0">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span class="kw3">String</span></a><span class="br0">[</span><span class="br0">]</span> args<span class="br0">)</span> <span class="br0">{</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+system"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">(</span><span class="st0">"Hello World!"</span><span class="br0">)</span><span class="sy0">;</span> <span class="co1">//Display the string.</span> <span class="br0">}</span> <span class="br0">}</span></pre> <p> The following language strings are currently recognized: <em>4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic</em> </p> <p> There are additional <a href="https://www.dokuwiki.org/syntax_highlighting" class="interwiki iw_doku" title="https://www.dokuwiki.org/syntax_highlighting">advanced options</a> available for syntax highlighting, such as highlighting lines or adding line numbers. </p> </div> <h3 class="sectionedit29" id="downloadable_code_blocks">Downloadable Code Blocks</h3> <div class="level3"> <p> When you use the <code><code></code> or <code><file></code> 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: </p> <pre class="code"><file php myexample.php> <?php echo "hello world!"; ?> </file></pre> <dl class="file"> <dt><a href="/_export/code/wiki:syntax?codeblock=8" title="Download Snippet" class="mediafile mf_php">myexample.php</a></dt> <dd><pre class="code file php"><span class="kw2"><?php</span> <span class="kw1">echo</span> <span class="st0">"hello world!"</span><span class="sy0">;</span> <span class="sy1">?></span></pre> </dd></dl> <p> If you don't want any highlighting but want a downloadable file, specify a dash (<code>-</code>) as the language code: <code><code - myfile.foo></code>. </p> </div> <h2 class="sectionedit30" id="rss_atom_feed_aggregation">RSS/ATOM Feed Aggregation</h2> <div class="level2"> <p> <a href="/wiki:dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> can integrate data from external XML feeds. For parsing the XML feeds, <a href="http://simplepie.org/" class="urlextern" title="http://simplepie.org/">SimplePie</a> 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: </p> <div class="table sectionedit31"><table class="inline"> <thead> <tr class="row0"> <th class="col0 leftalign"> Parameter </th><th class="col1"> Description </th> </tr> </thead> <tr class="row1"> <td class="col0"> any number </td><td class="col1"> will be used as maximum number items to show, defaults to 8 </td> </tr> <tr class="row2"> <td class="col0 leftalign"> reverse </td><td class="col1"> display the last items in the feed first </td> </tr> <tr class="row3"> <td class="col0 leftalign"> author </td><td class="col1"> show item authors names </td> </tr> <tr class="row4"> <td class="col0 leftalign"> date </td><td class="col1"> show item dates </td> </tr> <tr class="row5"> <td class="col0"> description</td><td class="col1"> show the item description. All <abbr title="HyperText Markup Language">HTML</abbr> tags will be stripped </td> </tr> <tr class="row6"> <td class="col0 leftalign"> nosort </td><td class="col1"> do not sort the items in the feed </td> </tr> <tr class="row7"> <td class="col0"> <em>n</em>[dhm] </td><td class="col1"> refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). </td> </tr> </table></div> <p> The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. <a href="/wiki:dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells <a href="/wiki:dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> to re-render the page if it is more than <em>refresh period</em> since the page was last rendered. </p> <p> By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the <code>reverse</code> parameter, or display the feed as is with <code>nosort</code>. </p> <p> <strong>Example:</strong> </p> <pre class="code">{{rss>http://slashdot.org/index.rss 5 author date 1h }}</pre> <ul class="rss"><li><div class="li"><a href="https://developers.slashdot.org/story/24/11/23/1855203/does-github-copilot-improve-code-quality?utm_source=rss1.0mainlinkanon&utm_medium=feed" class="urlextern" title="https://developers.slashdot.org/story/24/11/23/1855203/does-github-copilot-improve-code-quality?utm_source=rss1.0mainlinkanon&utm_medium=feed">Does GitHub Copilot Improve Code Quality?</a> by EditorDavid (2024-11-24 00:34)</div></li><li><div class="li"><a href="https://science.slashdot.org/story/24/11/23/2151226/more-business-school-researchers-accused-of-fabricated-findings?utm_source=rss1.0mainlinkanon&utm_medium=feed" class="urlextern" title="https://science.slashdot.org/story/24/11/23/2151226/more-business-school-researchers-accused-of-fabricated-findings?utm_source=rss1.0mainlinkanon&utm_medium=feed">More Business School Researchers Accused of Fabricated Findings</a> by EditorDavid (2024-11-23 23:34)</div></li><li><div class="li"><a href="https://apple.slashdot.org/story/24/11/23/0414258/meta-wants-apple-and-google-to-verify-the-age-of-app-downloaders?utm_source=rss1.0mainlinkanon&utm_medium=feed" class="urlextern" title="https://apple.slashdot.org/story/24/11/23/0414258/meta-wants-apple-and-google-to-verify-the-age-of-app-downloaders?utm_source=rss1.0mainlinkanon&utm_medium=feed">Meta Wants Apple and Google to Verify the Age of App Downloaders</a> by EditorDavid (2024-11-23 22:34)</div></li><li><div class="li"><a href="https://tech.slashdot.org/story/24/11/23/1953221/sabotage-or-accident-american-and-european-officials-disagree-on-what-caused-cuts-to-two-undersea-cables?utm_source=rss1.0mainlinkanon&utm_medium=feed" class="urlextern" title="https://tech.slashdot.org/story/24/11/23/1953221/sabotage-or-accident-american-and-european-officials-disagree-on-what-caused-cuts-to-two-undersea-cables?utm_source=rss1.0mainlinkanon&utm_medium=feed">Sabotage or Accident? American and European Officials Disagree On What Caused Cuts to Two Undersea Cables</a> by EditorDavid (2024-11-23 21:34)</div></li><li><div class="li"><a href="https://hardware.slashdot.org/story/24/11/23/0529232/silverstones-retro-beige-pc-case-turns-april-fools-joke-into-actual-product?utm_source=rss1.0mainlinkanon&utm_medium=feed" class="urlextern" title="https://hardware.slashdot.org/story/24/11/23/0529232/silverstones-retro-beige-pc-case-turns-april-fools-joke-into-actual-product?utm_source=rss1.0mainlinkanon&utm_medium=feed">SilverStone's Retro Beige PC Case Turns April Fools' Joke into Actual Product</a> by EditorDavid (2024-11-23 20:34)</div></li></ul> </div> <h2 class="sectionedit32" id="control_macros">Control Macros</h2> <div class="level2"> <p> Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: </p> <div class="table sectionedit33"><table class="inline"> <thead> <tr class="row0"> <th class="col0 leftalign"> Macro </th><th class="col1"> Description </th> </tr> </thead> <tr class="row1"> <td class="col0 leftalign"> ~~NOTOC~~ </td><td class="col1"> If this macro is found on the page, no table of contents will be created </td> </tr> <tr class="row2"> <td class="col0"> ~~NOCACHE~~ </td><td class="col1"> 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 </td> </tr> </table></div> </div> <h2 class="sectionedit34" id="syntax_plugins">Syntax Plugins</h2> <div class="level2"> <p> DokuWiki's syntax can be extended by <a href="https://www.dokuwiki.org/plugins" class="interwiki iw_doku" title="https://www.dokuwiki.org/plugins">Plugins</a>. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation: </p> <ul> <li class="level1"><div class="li"><a href="https://www.dokuwiki.org/plugin:data" class="urlextern" title="https://www.dokuwiki.org/plugin:data">Structured Data Plugin</a> <em>2024-01-30</em> by <a href="mailto:andi%20%5Bat%5D%20splitbrain%20%5Bdot%5D%20org" class="mail" title="andi [at] splitbrain [dot] org">Andreas Gohr</a><br/> Add and query structured data in your wiki</div> </li> <li class="level1"><div class="li"><a href="https://dokuwiki.org/" class="urlextern" title="https://dokuwiki.org/">DokuTeaser Plugin</a> <em>2016-01-16</em> by <a href="mailto:andi%20%5Bat%5D%20splitbrain%20%5Bdot%5D%20org" class="mail" title="andi [at] splitbrain [dot] org">Andreas Gohr</a><br/> A plugin for internal use on dokuwiki.org only</div> </li> <li class="level1"><div class="li"><a href="http://www.dokuwiki.org/plugin:gallery" class="urlextern" title="http://www.dokuwiki.org/plugin:gallery">Gallery Plugin</a> <em>2023-12-08</em> by <a href="mailto:andi%20%5Bat%5D%20splitbrain%20%5Bdot%5D%20org" class="mail" title="andi [at] splitbrain [dot] org">Andreas Gohr</a><br/> Creates a gallery of images from a namespace or RSS/ATOM feed</div> </li> <li class="level1"><div class="li"><a href="https://www.dokuwiki.org/plugin:info" class="urlextern" title="https://www.dokuwiki.org/plugin:info">Info Plugin</a> <em>2020-06-04</em> by <a href="mailto:andi%20%5Bat%5D%20splitbrain%20%5Bdot%5D%20org" class="mail" title="andi [at] splitbrain [dot] org">Andreas Gohr</a><br/> Displays information about various DokuWiki internals</div> </li> <li class="level1"><div class="li"><a href="https://www.dokuwiki.org/plugin:repository" class="urlextern" title="https://www.dokuwiki.org/plugin:repository">Repository plugin</a> <em>2024-02-09</em> by <a href="mailto:sandell%20%5Bdot%5D%20hakan%20%5Bat%5D%20gmail%20%5Bdot%5D%20com" class="mail" title="sandell [dot] hakan [at] gmail [dot] com">Andreas Gohr/Håkan Sandell</a><br/> Helps organizing the plugin and template repository</div> </li> <li class="level1"><div class="li"><a href="http://www.dokuwiki.org/plugin:translation" class="urlextern" title="http://www.dokuwiki.org/plugin:translation">Translation Plugin</a> <em>2023-12-14</em> by <a href="mailto:andi%20%5Bat%5D%20splitbrain%20%5Bdot%5D%20org" class="mail" title="andi [at] splitbrain [dot] org">Andreas Gohr</a><br/> Supports the easy setup of a multi-language wiki.</div> </li> <li class="level1"><div class="li"><a href="http://dokuwiki.org/plugin:xref" class="urlextern" title="http://dokuwiki.org/plugin:xref">PHPXref Plugin</a> <em>2023-08-08</em> by <a href="mailto:andi%20%5Bat%5D%20splitbrain%20%5Bdot%5D%20org" class="mail" title="andi [at] splitbrain [dot] org">Andreas Gohr</a><br/> Makes linking to a PHPXref generated API doc easy.</div> </li> </ul> </div> <div class="footnotes"> <div class="fn"><sup><a href="#fnt__1" id="fn__1" class="fn_bot">1)</a></sup> <div class="content">This is a footnote</div></div> <div class="fn"><sup><a href="#fnt__2" id="fn__2" class="fn_bot">2)</a></sup> <div class="content">when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing</div></div> </div> <!-- wikipage stop --> </div> <div class="docInfo"><bdi>wiki/syntax.txt</bdi> · Last modified: 2024-01-30 09:36 by <bdi>127.0.0.1</bdi></div> <hr class="a11y" /> </div></main><!-- /content --> <!-- PAGE ACTIONS --> <nav id="dokuwiki__pagetools" aria-labelledby="dokuwiki__pagetools__heading"> <h3 class="a11y" id="dokuwiki__pagetools__heading">Page Tools</h3> <div class="tools"> <ul> <li class="source"><a href="/wiki:syntax?do=edit" title="Show pagesource [v]" rel="nofollow" accesskey="v"><span>Show pagesource</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m.12 13.5l3.74 3.74 1.42-1.41-2.33-2.33 2.33-2.33-1.42-1.41-3.74 3.74m11.16 0l-3.74-3.74-1.42 1.41 2.33 2.33-2.33 2.33 1.42 1.41 3.74-3.74z"/></svg></a></li><li class="revs"><a href="/wiki:syntax?do=revisions" title="Old revisions [o]" rel="nofollow" accesskey="o"><span>Old revisions</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 7v5.11l4.71 2.79.79-1.28-4-2.37V7m0-5C8.97 2 5.91 3.92 4.27 6.77L2 4.5V11h6.5L5.75 8.25C6.96 5.73 9.5 4 12.5 4a7.5 7.5 0 0 1 7.5 7.5 7.5 7.5 0 0 1-7.5 7.5c-3.27 0-6.03-2.09-7.06-5h-2.1c1.1 4.03 4.77 7 9.16 7 5.24 0 9.5-4.25 9.5-9.5A9.5 9.5 0 0 0 12.5 2z"/></svg></a></li><li class="backlink"><a href="/wiki:syntax?do=backlink" title="Backlinks" rel="nofollow"><span>Backlinks</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.59 13.41c.41.39.41 1.03 0 1.42-.39.39-1.03.39-1.42 0a5.003 5.003 0 0 1 0-7.07l3.54-3.54a5.003 5.003 0 0 1 7.07 0 5.003 5.003 0 0 1 0 7.07l-1.49 1.49c.01-.82-.12-1.64-.4-2.42l.47-.48a2.982 2.982 0 0 0 0-4.24 2.982 2.982 0 0 0-4.24 0l-3.53 3.53a2.982 2.982 0 0 0 0 4.24m2.82-4.24c.39-.39 1.03-.39 1.42 0a5.003 5.003 0 0 1 0 7.07l-3.54 3.54a5.003 5.003 0 0 1-7.07 0 5.003 5.003 0 0 1 0-7.07l1.49-1.49c-.01.82.12 1.64.4 2.43l-.47.47a2.982 2.982 0 0 0 0 4.24 2.982 2.982 0 0 0 4.24 0l3.53-3.53a2.982 2.982 0 0 0 0-4.24.973.973 0 0 1 0-1.42z"/></svg></a></li><li class="top"><a href="#dokuwiki__top" title="Back to top [t]" rel="nofollow" accesskey="t"><span>Back to top</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12z"/></svg></a></li> </ul> </div> </nav> </div><!-- /wrapper --> <!-- ********** FOOTER ********** --> <footer id="dokuwiki__footer"><div class="pad"> <div class="license">Except where otherwise noted, content on this wiki is licensed under the following license: <bdi><a href="https://creativecommons.org/licenses/by-sa/4.0/deed.en" rel="license" class="urlextern">CC Attribution-Share Alike 4.0 International</a></bdi></div> <div class="buttons"> <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.en" rel="license"><img src="/lib/images/license/button/cc-by-sa.png" alt="CC Attribution-Share Alike 4.0 International" /></a> <a href="https://www.dokuwiki.org/donate" title="Donate" ><img src="/lib/tpl/dokuwiki/images/button-donate.gif" width="80" height="15" alt="Donate" /></a> <a href="https://php.net" title="Powered by PHP" ><img src="/lib/tpl/dokuwiki/images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a> <a href="//validator.w3.org/check/referer" title="Valid HTML5" ><img src="/lib/tpl/dokuwiki/images/button-html5.png" width="80" height="15" alt="Valid HTML5" /></a> <a href="//jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" ><img src="/lib/tpl/dokuwiki/images/button-css.png" width="80" height="15" alt="Valid CSS" /></a> <a href="https://dokuwiki.org/" title="Driven by DokuWiki" ><img src="/lib/tpl/dokuwiki/images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a> </div> <div style="margin-top: 2em; font-size:90%" class="dokuwiki"><div style="float:right"><a href="http://www.splitbrain.org/personal#imprint" style="float:right; text-decoration: none; color:#333">Imprint</a></div></div><!-- Include for DokuWiki site wide top bar --> <style type="text/css"> @media screen { body { padding-top: 30px; } #global__header { position: absolute; top: 0; left: 0; text-align: left; vertical-align: middle; line-height: 1.5; background-color: #333; box-shadow: 0 0 8px rgba(0,0,0,0.5); width: 100%; margin: 0; padding: 5px 20px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; white-space: nowrap; overflow: hidden; } #global__header h2 { position: absolute; left: -99999em; top: 0; overflow: hidden; display: inline; } #global__header ul, #global__header li { margin: 0; padding: 0; list-style: none; display: inline; line-height: 1.5; } #global__header a { color: #bbb; text-decoration: none; margin-right: 20px; font-size: 14px; font-weight: normal; } #global__header a:hover, #global__header a:active, #global__header a:focus { color: #fff; text-decoration: underline; } #global__header form { float: right; margin: 0 0 0 20px; } #global__header input { background-color: #333; background-image: none; border: 1px solid #bbb; color: #fff; box-shadow: none; border-radius: 2px; margin: 0; line-height: normal; padding: 1px 0 1px 0; height: auto; } #global__header input.button { border: none; color: #bbb; } #global__header input.button:hover, #global__header input.button:active, #global__header input.button:focus { color: #fff; text-decoration: underline; } } /* /@media */ @media only screen and (min-width: 601px) { /* changes specific for www.dokuwiki.org */ #dokuwiki__header { padding-top: 3em; } #dokuwiki__usertools { top: 3em; } /* changes specific for bugs.dokuwiki.org */ div#container div#showtask { top: 40px; } } /* /@media */ @media only screen and (max-width: 600px) { body { padding-top: 0; } #global__header { position: static; white-space: normal; overflow: auto; } #global__header form { float: none; display: block; margin: 0 0 .4em; } } /* /@media */ @media print { #global__header { display: none; } } /* /@media */ </style> <div id="global__header"> <h2>Global DokuWiki Links</h2> <form method="get" action="https://search.dokuwiki.org/" target="_top"> <input type="text" name="q" title="Search all DokuWiki sites at once" class="input" /> <input type="submit" title="Search all DokuWiki sites at once" value="Search" class="button" /> </form> <ul> <li><a href="https://download.dokuwiki.org" title="Download the latest release" target="_top">Download</a></li> <li><a href="https://www.dokuwiki.org" title="Read the DokuWiki documentation" target="_top">Wiki</a></li> <li><a href="https://forum.dokuwiki.org" title="Ask questions in the DokuWiki forum" target="_top">Forum</a></li> <li><a href="https://irc.dokuwiki.org" title="Check IRC chat logs or join the chat" target="_top">IRC</a></li> <li><a href="https://github.com/splitbrain/dokuwiki/issues" title="Report and track bugs" target="_top">Bugs</a></li> <li><a href="https://translate.dokuwiki.org/" title="Help translating the DokuWiki interface" target="_top">Translate</a></li> <li><a href="https://github.com/splitbrain/dokuwiki" title="Access the most recent git commits" target="_top">Git</a></li> <li><a href="https://xref.dokuwiki.org/reference/dokuwiki/" title="Cross-Reference of the DokuWiki source code" target="_top">XRef</a></li> <li><a href="https://codesearch.dokuwiki.org/" title="Search through the sources of DokuWiki, plugins and templates" target="_top">Code Search</a></li> </ul> </div> <!-- end of DokuWiki top bar include --> </div></footer><!-- /footer --> </div></div><!-- /site --> <div class="no"><img src="/lib/exe/taskrunner.php?id=wiki%3Asyntax&1732413829" width="2" height="1" alt="" /></div> <div id="screen__mode" class="no"></div></body> </html>