Difference between revisions of "Syntax help"

From The Powder Toy
Jump to: navigation, search
m (1 revision)
(If anyone knows how to type monospace or new lines without paragraphing, amend (not revert) this edit.)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
to mark something as:
+
To mark something as:
 +
 
 +
''Italic'' use:
 +
<nowiki> ''Italic'' </nowiki>
  
 
'''Bold''' use:  
 
'''Bold''' use:  
<code> ''' Bold ''' </code>
+
<nowiki>'''Bold'''</nowiki>
  
''Italic'' use:
+
These are repeated apostrophes, not double quotation marks.
<code> '' Italic '' </code>
 
  
 
<ins>Underlined</ins> use:
 
<ins>Underlined</ins> use:
<code> <ins> Underlined </ins> </code>
+
<nowiki> <ins>Underlined</ins> </nowiki>
 
 
''Monospaced'' use:
 
<code> '' Monospaced '' </code>
 
 
 
  
 
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:
Line 29: Line 27:
 
}
 
}
 
</code>
 
</code>
 
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.
 
<code>\\ </code>
 

Latest revision as of 07:06, 20 April 2023

To mark something as:

Italic use: ''Italic''

Bold use: '''Bold'''

These are repeated apostrophes, not double quotation marks.

Underlined use: <ins>Underlined</ins>

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; }