Help:Contribute: Difference between revisions
Randomguy3 (talk | contribs) m (correct English) |
Miabrahams (talk | contribs) (Explain <tt>) |
||
Line 4: | Line 4: | ||
* http://en.wikipedia.org/wiki/Help:Wiki_markup | * http://en.wikipedia.org/wiki/Help:Wiki_markup | ||
* http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet | * http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet | ||
=== The <tt> tag === | |||
The <code> tag gives an ugly kind of yellow, probably you will like the look of KDE's <tt><tt></tt> better. However since it is intended to be a multi-purpose tag, the syntax is a bit finicky. When <tt> is used inline, it produces monospaced formatting <tt>like this</tt>. The same effect will happen when <tt> starts a new line. To get a pleasant grey background like <code>, place <tt> in a new line with a space in front of it. You can view the source to see how this works. | |||
<tt>myCodeSnippet();</tt> |
Revision as of 12:51, 22 October 2015
You may find the following resources helpful:
- http://www.mediawiki.org/wiki/Help:Formatting
- http://en.wikipedia.org/wiki/Help:Wiki_markup
- http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet
The <tt> tag
The <code> tag gives an ugly kind of yellow, probably you will like the look of KDE's better. However since it is intended to be a multi-purpose tag, the syntax is a bit finicky. When <tt> is used inline, it produces monospaced formatting like this. The same effect will happen when <tt> starts a new line. To get a pleasant grey background like <code>, place <tt> in a new line with a space in front of it. You can view the source to see how this works.
myCodeSnippet();