Help:Contribute: Difference between revisions

From KDE Community Wiki
m (correct English)
(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 &lt;tt> tag ===
The &lt;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 &lt;tt> is used inline, it produces monospaced formatting <tt>like this</tt>. The same effect will happen when &lt;tt> starts a new line. To get a pleasant grey background like &lt;code>, place &lt;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:


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();