Help:Formatting: Difference between revisions

→‎Useful Tips, Characters, and Codes: More detail about spaces, pre tags, and lang tags
(→‎The Editor: math tags are installed now)
(→‎Useful Tips, Characters, and Codes: More detail about spaces, pre tags, and lang tags)
Line 108:
*To add superscripted text, put <nowiki><sup></sup></nowiki> around it. <nowiki><sup>example</sup></nowiki> shows <sup>example</sup>.
*To add subscripted text, put <nowiki><sub></sub></nowiki> around it. <nowiki><sub>example</sub></nowiki> shows <sub>example</sub>.
*To show your source code in a code box, add a space<nowiki><lang></nowiki> beforetag with a eachprogramming linelanguage (includingas blankan lines)argument:
<lang c>int main(char* argv, int argc){
printf("Hello, World!");
}</lang>
(See [[Help:Syntax highlighting]] for language arguments)
*To show text with wikicode in a code box, add a space before each line (including blank lines):
 
''This is notitalic codetext.''
''This is totallyitalic codetext in a box.''
*To show text without wikicode in a box, add a <nowiki><pre></nowiki> tag:
 
''This is italic text.''
<pre>''This is not italic text in a box, but it shows the wikicode for italics.''</pre>
*Putting two spaces after a period (as is common practice) will only show up as one space when typing plain text. It basically wastes server space.
*If you have a question about something on a page, ask! Sometimes even we are wrong about coding, so if you think you see a problem or don't understand something, click the "discussion" tab at the top of the page and tell us about it.
Anonymous user