User Tools

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:syntax [2024/08/05 06:28] – created - external edit 127.0.0.1wiki:syntax [2025/05/12 01:31] (current) – remove s and ins from inline markup shanes
Line 5: Line 5:
 ===== Basic Text Formatting ===== ===== Basic Text Formatting =====
  
-DokuWiki supports **bold**//italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these.+The wiki supports a variety of text styleswhich can be produced 
 +by wrapping text with markup:
  
-  DokuWiki supports **bold**//italic//, __underlined__ and ''monospaced'' texts. +^ Style          ^ Markup                          ^ Example                 ^ 
-  Of course you can **__//''combine''//__** all these.+| Bold           | ''%%**example text**%%''        | **example text**        | 
 +| Italic         | ''%%//example text//%%''        | //example text//        | 
 +| Underline      | ''%%__example text__%%''        | __example text__        | 
 +| Superscript    | ''%%example<sup>text</sup>%%''  | example<sup>text</sup> 
 +| Subscript      | ''%%example<sub>text</sub>%%''  | example<sub>text</sub> 
 +| Strikethrough ''%%<del>example text</del>%%'' | <del>example text</del> | 
 +| Code           | ''%%''example text''%%''        | ''example text''        | 
 +| Variable       | ''%%<var>example text</var>%%'' | <var>example text</var>
 +| Keyboard Input | ''%%<kbd>example text</kbd>%%'' | <kbd>example text</kbd>
 +| Sample Output  | ''%%<samp>example text</samp>%%'' | <samp>example text</samp>
 +| Abbreviation   | ''%%<abbr "BridgeWire">BW</abbr>%%'' | <abbr "BridgeWire">BW</abbr>
 +| Definition     | ''%%<dfn>example text</dfn>%%'' | <dfn>example text</dfn>
 +| Highlight      | ''%%<mark>example text</mark>%%'' | <mark>example text</mark> |
  
-You can use <sub>subscript</sub> and <sup>superscript</sup>, too.+You can also combine styles by nesting their markup. For example, ''%%**//example text//**%%'' produces bold italic: **//example text//**.
  
-  You can use <sub>subscript</sub> and <sup>superscript</sup>, too.+===== Paragraph Breaks =====
  
-You can mark something as <del>deleted</delas well.+<dfn>Paragraphs</dfnare created from blank lines. If you want to force a line break without a paragraph break, you can use two backslashes followed by a whitespace or the end of line.
  
-  You can mark something as <del>deleted</del> as well. +This is some text with some linebreaks.\\ Note that the
- +
-**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. +
- +
-This is some text with some linebreaks\\ Note that the+
 two backslashes are only recognized at the end of a line\\ two backslashes are only recognized at the end of a line\\
-or followed by\\ a whitespace \\this happens without it.+or followed by\\ a whitespace\\this happens without it.
  
-  This is some text with some linebreaks\\ Note that the+  This is some text with some linebreaks.\\ Note that the
   two backslashes are only recognized at the end of a line\\   two backslashes are only recognized at the end of a line\\
-  or followed by\\ a whitespace \\this happens without it.+  or followed by\\ a whitespace\\this happens without it.
  
-You should use forced newlines only if really needed.+You should use forced line breaks only if really needed.
  
 ===== Links ===== ===== Links =====