Difference between revisions of "Syntax help"

From The Powder Toy
Jump to: navigation, search
m (1 revision)
(Fixed formatting(for some reason code doesnt escape control stuff'))
Line 2: Line 2:
  
 
'''Bold''' use:  
 
'''Bold''' use:  
<code> ''' Bold ''' </code>
+
<nowiki>''' Bold '''</nowiki>
  
 
''Italic'' use:
 
''Italic'' use:
<code> '' Italic '' </code>
+
<nowiki> '' Italic '' </nowiki>
  
 
<ins>Underlined</ins> use:
 
<ins>Underlined</ins> use:
<code> <ins> Underlined </ins> </code>
+
<nowiki> <ins> Underlined </ins> </nowiki>
  
 
''Monospaced'' use:
 
''Monospaced'' use:
<code> '' Monospaced '' </code>
+
<nowiki> '' Monospaced '' </nowiki>
  
  
 
To use code text (unformatted) use:
 
To use code text (unformatted) use:
<code> <code> </code>
+
<nowiki> <code> </nowiki>
  
 
You can use syntax highlighting, like in code editors, using:
 
You can use syntax highlighting, like in code editors, using:
  
<code> <code language> </code>
+
<nowiki> <code language> </nowiki>
  
 
Example:
 
Example:

Revision as of 03:59, 30 January 2016

to mark something as:

Bold use: ''' Bold '''

Italic use: '' Italic ''

Underlined use: <ins> Underlined </ins>

Monospaced use: '' Monospaced ''


To use code text (unformatted) use: <code>

You can use syntax highlighting, like in code editors, using:

<code language>

Example: #include <iostream> int main() { printf("Syntax highlighting"); return 0; }

To force a new-line after your line of text, you do not always need to add an empty line between your new line, because that makes every line into a paragraph. A much simpler way(DokuWiki style) is to use a special character set: two backslashes followed by a space. \\