User Tools

Site Tools


wiki:syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:syntax [2017/03/07 15:02]
127.0.0.1 external edit
wiki:syntax [2021/07/14 01:16] (current)
peternlewis
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.
 +
 +===== DokuWiki Full Syntax =====
 +See [DokuWiki Formatting Syntax Reference Page](https://​www.dokuwiki.org/​wiki:​syntax)
  
 ===== Basic Text Formatting ===== ===== Basic Text Formatting =====
Line 29: Line 32:
  
 You should use forced newlines only if really needed. You should use forced newlines only if really needed.
 +
 +===== Lists =====
 +==== DokuWiki List Ref ====
 +See [Working with Lists -- DokuWiki Reference](https://​www.dokuwiki.org/​faq%3Alists)
 +
 +==== Mixing Numbered and Bullet Items ====
 +
 +
 +**How To Mix Unordered (Bullet) Items with Ordered (Numbered) Items in a List**
 +
 +1. Use a dash, `-`, for the numbered items
 +2. Use an asterisk, `*`, for the bullet items
 +3. The List Title must immediately precede the list.
 +
 +This Markdown Text:
 +
 +  List Title Goes Here
 +    - First numbered item
 +    - Second numbered item
 +      * First sub-bullet item
 +      * Second sub-bullet item
 +    - Third numbered item 
 +
 +Results in This Rendered Text:
 +
 +List Title Goes Here
 +  - First numbered item
 +  - Second numbered item
 +    * First sub-bullet item
 +    * Second sub-bullet item
 +  - Third numbered item 
 +
 +
  
 ===== Links ===== ===== Links =====
Line 58: Line 94:
 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]].+=== Links to Sections on Page ===
  
-  This links to [[syntax#​internal|this Section]]. 
  
-Notes:+Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML.\\ 
 +This, `[[syntax#​internal|this Section]]`, links to [[syntax#​internal|this Section]].
  
-  ​* Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. +If you want to link to a section on the page being edited, just use the `#​InternalLink` on that page:\\ 
-  ​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. +This, `[[#​internal|Link to Internal on this page]]` creates this [[#​internal|Link to Internal on this page]]. 
-  ​When a section'​s heading is changed, its bookmark changes, too. So don't rely on section linking too much.+ 
 +**Notes**: 
 +  - You can get the _Internal Link_ by either of these methods: 
 +    * Click on the link in the _Table of Contents_ to go to that link, and then view the link in the browser'​s address bar. 
 +    * Right-Click on the link in the _Table of Contents_, select _copy link_, and then view the _System Clipboard_. 
 +  - 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. 
 +  ​When a section'​s heading is changed, its bookmark changes, too. So don't rely on section linking too much.
  
 ==== Interwiki ==== ==== Interwiki ====
Line 84: Line 127:
  
   * 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
 /** /**
Line 257: Line 302:
 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)+-> <- <-> => <= <=>
 "He thought '​It'​s a man's world'​..."​ "He thought '​It'​s a man's world'​..."​
  
 <​code>​ <​code>​
--> <- <-> => <= <​=> ​>> << -- --- 640x480 (c) (tm) (r)+-> <- <-> => <= <=>
 "He thought '​It'​s a man's world'​..."​ "He thought '​It'​s a man's world'​..."​
 </​code>​ </​code>​
Line 278: Line 323:
 > 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>​
  
Line 291: Line 336:
 > 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 417: Line 462:
 </​code>​ </​code>​
  
-The following language strings are currently recognized: //4cs6502acme6502kickass6502tasm68000devpacabapactionscript-french, actionscript,​ actionscript3, ​adaalgol68apacheapplescriptasmaspautoconfautohotkeyautoitavisynthawkbascomavrbashbasic4glbfbibtexblitzbasicbnfboo, c, c_loadrunner,​ c_mac, ​caddclcadlispcfdgcfmchaiscriptcilclojurecmakecobolcoffeescriptcppcpp-qtcsharpcsscuesheet, d, dcsdelphidiffdivdosdot, e, epc, ecmascripteiffelemailerlangeuphoriaf1falconfofortranfreebasicfsharpgambasgenerogenie, gdb, glslgmlgnuplotgogroovy, gettext, ​gwbasichaskellhicesthq9plushtmlhtml5iconidliniinnointercalio, j, java5javajavascriptjquerykixtartklonecklonecpplatexlblispllvmlocobasiclogtalklolcodelotusformulaslotusscriptlscriptlsl2luam68kmagiksfmakemapbasicmatlabmircmodula2modula3, mmix, mpasmmxmlmysqlnewlispnsisoberon2objcobjeckocaml-briefocamloobasoracle8, oracle11, ​oxygeneozpascalpcreperl, perl6, ​perpfphp-briefphppike, pic16, ​pixelbenderpliplsqlpostgresqlpovraypowerbuilderpowershellproftpdprogressprologpropertiesprovidexpurebasicpyconpythonq, qbasic, ​railsrebolregrobotsrpmspecrsplusrubysasscalaschemescilabsdlbasicsmalltalksmartysqlsystemverilogtclteratermtextthinbasictsqltyposcriptuniconuscriptvalavbnetvbverilogvhdlvimvisualfoxprovisualprologwhitespacewinbatch, whois, ​xbasicxmlxorg_confxppyamlz80zxbasic//+The following language strings are currently recognized: //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 ​cpp cpp-qt ​cpp-winapi ​csharp css cuesheet ​c_winapi dart dcl dcpu16 ​dcs delphi diff div dos dot 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 racket ​rails rbs rebol reg rexx robots rpmspec rsplus ruby rust sas sass scala scheme scilab ​scl sdlbasic smalltalk smarty ​spark sparql ​sql 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 xbasic xml xojo xorg_conf xpp yaml z80 zxbasic// 
 + 
 +There are additional [[doku>​syntax_highlighting|advanced options]] available for syntax highlighting,​ such as highlighting lines or adding line numbers.
  
 ==== Downloadable Code Blocks ==== ==== Downloadable Code Blocks ====
wiki/syntax.1488916923.txt.gz · Last modified: 2017/03/07 15:02 by 127.0.0.1